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

Hans-Peter Diettrich DrDiettrich1 at aol.com
Wed Feb 29 15:40:42 CET 2012


Michael Schnell schrieb:

> 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.

AnsiString(0) should be okay, but other encodings may require overloaded 
string functions - or the string will be converted automatically.

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

The XE code is the same for AnsiString(0). Other encodings are either 
ignored, when functions with RawByteString arguments are present, or are 
converted automatically what most probably causes wrong results.

DoDi





More information about the Lazarus mailing list