[fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?

Michael Schnell mschnell at lumino.de
Fri Apr 15 10:19:06 CEST 2016


On 04/15/2016 08:35 AM, Michael Van Canneyt wrote:
>
> For string constants there are slightly different rules. There the 
> result depends on the {$codepage} directive of the source file.

Hmmm.

If not setting $codepage Ifor a constant string I get StringCodePage = 0,

If setting {$codepage UTF8} for a constant string I get StringCodePage = 
1200 which is UTF16.

The program does work decently, anyway.

And ASM stepping shows that no conversion is done.

-Michael




More information about the fpc-pascal mailing list