mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 00:08:12 +02:00
* Patch from Bart Broersma for issue ID #38622
git-svn-id: trunk@48962 -
This commit is contained in:
parent
d399df83ba
commit
2aab9b1f9b
@ -1014,6 +1014,7 @@ begin
|
||||
if (U1<>0) then
|
||||
begin
|
||||
App:={$IFDEF FPC_HAS_CPSTRING}UTF8Encode({$ENDIF}WideChar(U1)+WideChar(U2){$IFDEF FPC_HAS_CPSTRING}){$ENDIF};
|
||||
U1:=0;
|
||||
U2:=0;
|
||||
end
|
||||
else
|
||||
|
@ -4077,6 +4077,9 @@ begin
|
||||
TestFrom('\u00f8','ø'); // this is ø
|
||||
TestFrom('\u00f8\"','ø"'); // this is ø"
|
||||
TestFrom('\ud83c\udf1f',GlowingStar);
|
||||
TestFrom('\u0041\u0042','AB'); //issue #0038622
|
||||
TestFrom('\u0041\u0042\u0043','ABC');
|
||||
TestFrom('\u0041\u0042\u0043\u0044','ABCD');
|
||||
end;
|
||||
|
||||
procedure TTestJSONString.TestStringToJSONString;
|
||||
|
Loading…
Reference in New Issue
Block a user