Problem handling UTF8 file and directory names
Original Reporter info from Mantis: giorgiotani
-
Reporter name:
Original Reporter info from Mantis: giorgiotani
- Reporter name:
Description:
I'm using Lazarus-0.9.25-fpc-2.2.3-20080610-win32.exe SVN on Windows XP SP3 machine.
I'm experiencing problems in handling file and directory names which contains non-Latin characters, both using FreePascal procedures and Windows ones.
The example code, pressing button1, calls a SelectDirectoryDialog.
If I select a directory containing non-Latin characters, the test program is not able to open the directory (Windows' method shellexecute), nor to change to or to test the directory (setcurrentdir and directoryexists); all three operations are successful if I select a directory with Latin characters only.
Then, the test program extract the name of the directory and create a file with that name in the current directory; all works fine if the name contains Latin characters only but if the name contains non-Latin characters the procedure can create (assign, write, close) and verify the file (fileexists), but the resulting file has the name differently encoded, i.e. ЂДЖ becomes ЂДЖ
Am I wrong in some part of the code or in my assumptions, or something about Unicode on Windows is still in under construction in the SVN?
Mantis conversion info:
- Mantis ID: 11454
- Version: 0.9.25 (SVN)