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

Michael Schnell mschnell at lumino.de
Wed Feb 29 12:10:36 CET 2012


On 02/29/2012 11:24 AM, Marco van de Voort wrote:
> 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.

Taking a brief look at the XE2 internals you seem to be right and he he 
was mistaken.

Maybe he would be better off using ANSIString(0) or ANSIString($FFFF) to 
be sure that his doing will not be influenced by the locale setting of 
the system the code is compiled on or runs on.

Just _hoping_ that the code generated by XE2 for "ANSIString" will not 
be a lot slower that that generated by Delphi < 2009 for "String".

-Michael




More information about the Lazarus mailing list