[fpc-devel] TReader WideString reading

Anton Kavalenka anton.k at tut.by
Tue Dec 30 17:15:41 CET 2008


Hello FPC developers!

Currently the FPC RTL incorrectly handles binary streams where property 
of type WideString stored as UTF8 string.
In sources (reader.inc) there is comment:

   if NextValue in [vaWString,vaUString,vaUTF8String] then
    //vaUTF8String needs conversion? 2008-09-06 mse

Proposed the patch to read WideString properties in right way.
Especially this is important for those (like me) who use object 
streaming as data file format.

Attached the patch.

Best regards,
and happy holidays

Anton Kavalenka

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20081230/cc71aadf/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: reader.inc.diff
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20081230/cc71aadf/attachment.ksh>


More information about the fpc-devel mailing list