[fpc-pascal] Weird string behavior

wkitty42 at windstream.net wkitty42 at windstream.net
Sat Jul 23 12:58:55 CEST 2016


On 07/23/2016 06:13 AM, Jonas Maebe wrote:
[...]
> var
>   s1,s2,s3: AnsiString;
>   r1,r2,r3: RawByteString;
> begin
>   s1:='A';   // 1252
>   s2:='AƤ';  // 1252
>   writeln('s1="',s1,'" cp=',StringCodePage(s1));
>   writeln('s2="',s1,'" cp=',StringCodePage(s2));

writeln('s2="',s2,'" cp=',StringCodePage(s2));


you're not the only one to have missed that...

gotta wonder how fubar the test results are now ;)


-- 
  NOTE: No off-list assistance is given without prior approval.
        *Please keep mailing list traffic on the list* unless
        private contact is specifically requested and granted.



More information about the fpc-pascal mailing list