On 07/29/2013 12:12 PM, Mattias Gaertner wrote:
fpc is not "moving" to Delphi strings. That would break all
compatibility.
This is exactly what Delphi did :-( .
It will support both.
There might be an appropriate compiler switch. But what about the
RTL-Interface like the type StringList offers?
Note: TStringList can be used with UTF8 except for the LoadFromFile and
SaveToFile functions.
If the general option is set to "new Delphi Strings" and this does work
in fully Delphi compatible way, TStringList will offer just 16 Bit
strings as it's interface.
Using UTF8 with this would be easily possible, as this mode does
auto-conversion.
But forcing a conversion each time when adding and when retrieving a
String would result in sluggish behavior.
-Michael
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal