On Mon, 30 Dec 2013, Hans-Peter Diettrich wrote:
Michael Van Canneyt schrieb:
Only the cases where you do low-level PChar access or Move() data into a
string, need to be checked. These cases need to be checked anyway if we
would move to a 2-byte char.
What about binary data in strings (buffers)? Will FPC supply a dedicated
encoding, that will exclude such strings from automatic conversions, or must
the Delphi way be used (TBytes)?
As far as I know, TRawByteString must be used for such cases.
Abusing ansistring for arbitratry data was a bad idea in the past.
Using TBytes would have been a good idea in any case.
Michael.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus