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


--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to