[Lazarus] Beyond Compare 4 built with Lazarus 1.2

Michael Van Canneyt michael at freepascal.org
Mon Dec 30 16:43:26 CET 2013



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.




More information about the Lazarus mailing list