[Lazarus] Can't compile trunk with fpc 2.4.5 under ubuntu

Marco van de Voort marcov at stack.nl
Wed Feb 29 11:24:21 CET 2012


On Wed, Feb 29, 2012 at 08:44:20AM +0100, Michael Schnell wrote:
> > it incompatible with other encodings, and thus disables all 
> > conversions. Such an encoding doesn't break Delphi compatibility, but 
> > allows to use all stringhandling functions with it.
> >
> The colleague I mentioned told me that with Delphi XE2 (but maybe nit 
> with Delphi versions < XE2 and >= 2009) "ANSIString" _is_ exactly the 
> "pre 2009" string type

Not exactly. It has a codepage added to the record.

> while "String" (and friends" is the new style 
> dynamically encode string type.

No that is ansistring, with various values filled in for codepage. The
default codepage can be set to the system 1-byte encoding (ansi), and then
it is the same as the D7 one.

"string" is unicodestring, and that is always utf16.




More information about the Lazarus mailing list