On 10/12/2011 12:13 PM, Hans-Peter Diettrich wrote:

Delphi allows for RawByteStrings with encoding 0. When assigned to an AnsiString, the string encoding still is zero, both variables seem to point to the same string data.

The pointing to the data array (managed by "lazy copy and reference counting features) is independent from the encoding ID, that is part of the string management record and not of the data array.

-Michael
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to