[fpc-devel] Trying to understand the wiki-Page "FPC Unicode support"
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Wed Nov 26 20:41:14 CET 2014
Mattias Gaertner schrieb:
> For example:
> CP_ACP=0, DefaultSystemCodePage=1252
> That means static code page is always 0, while dynamic code page can be
> 0 or 1252. Both describe the same encoding.
A *dynamic* encoding *never* can be CP_ACP nor CP_NONE (in Delphi).
These values are allowed only for *static* types in type declarations.
CP_UTF16 is also not allowed.
Delphi StringCodePage reports the current default codepage
(DefaultSystemCodePage) for empty AnsiStrings, CP_UTF16 for all
UnicodeStrings.
>> In section "RawByteString":
>>
>> "the results of conversions from/to the CP_NONE code page are undefined."
>
> ... because CP_NONE is not a real code page.
The same for CP_ACP.
DoDi
More information about the fpc-devel
mailing list