LazReport should use TFileStreamUtf8 instead of TFileStream
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
I noticed that LazReport uses TFileStream(Utf8ToSys()),..) for reading and writing to a filestream.
This will fail if the filename (which is supplied in UTF8) contains any character outside the current codepage on Windows.
This can be avoided by using TFileStreamUTF8 (LazUtf8Classes), because this directly uses the WideString Windows API for reading/writing to the file.
Additional information:
I can supply a patch if you want me to.
Mantis conversion info:
- Mantis ID: 26647
- OS: Window
- OS Build: Win7
- Build: r46073
- Platform: i386
- Version: 1.3 (SVN)
- Fixed in version: 1.3 (SVN)
- Fixed in revision: 46196 (#fbf91ec7)
- Target version: 1.4