Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2008-12

TReader WideString reading

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Anton Kavalenka

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

Reply by email

Jonas Maebe
to Anton Kavalenka
Anton Kavalenka wrote 10 lines
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.

Thanks, but please attach it to a bug report so it cannot get lost in the mail list archives.

Jonas

Reply by email