[fpc-devel] String and UnicodeString and UTF8String
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Thu Jan 13 02:11:40 CET 2011
Sven Barth schrieb:
>> legacy code can be broken by (eventually) required changes to "set of
>> char", sizeof(char) and PChar, sizeof(string) as opposed to
>> Length(string), upper/lower conversion, and many more not so obvious
>> consequences.
>
> I don't believe that PChar will be touched, because to much code that
> interfaces with C code depends on that.
AFAIK Delphi did so, with PChar=PWideChar now. For external Ansi
interfaces PAnsiChar has to be used.
Please note that the WinAPI headers are configurable for either Ansi or
Unicode, changing TCHAR etc. as appropriate.
DoDi
More information about the fpc-devel
mailing list