Stumbled over a Unicode filename issue (again), looking into it there are at least two issues (independent of the codepages [1] used on Windows):
* using the command "dir" yields a different result (and also showing backslashes in the Unicode part of the filename) than using "Address ... with": E:\WU\Lehrveranstaltungen\2020ws\01-BP1-AutoWin-0164\studentenarbeiten\g1\test\oha>*testDir.rex* displaying current directory using "dir": -*\342\227\220*-fileNameWithUnicodeChar-U+25D0.txt testDir.rex testSysFileTree.rex --- displaying current directory using: ADDRESS SYSTEM "dir": -*\342\227\220*-fileNameWithUnicodeChar-U+25D0.txt testDir.rex testSysFileTree.rex --- displaying current directory using: ADDRESS SYSTEM "dir" *WITH output using (arr)*: Volume in drive E is root_e Volume Serial Number is 0509-DBAB Directory of E:\WU\Lehrveranstaltungen\2020ws\01-BP1-AutoWin-0164\studentenarbeiten\g1\test\oha 26.11.2020 12:34 <DIR> . 26.11.2020 12:34 <DIR> .. 26.11.2020 10:51 317 -?-fileNameWithUnicodeChar-U+25D0.txt 26.11.2020 11:37 340 testDir.rex 26.11.2020 11:40 627 testSysFileTree.rex 3 File(s) 1 284 bytes 2 Dir(s) 71 670 398 976 bytes free --- * using SysFileTree() and then using SysFileExists() to test the existence of the Unicode file returned by SysFileTree() will yield .false: E:\WU\Lehrveranstaltungen\2020ws\01-BP1-AutoWin-0164\studentenarbeiten\g1\test\oha>*testSysFileTree.rex* using command "dir": -\342\227\220-fileNameWithUnicodeChar-U+25D0.txt testDir.rex testSysFileTree.rex --- --- now using SysFileTree() and SysFileExists(): sysFileTree with pattern: "*" | found: 3 file(s) 1: [E:\WU\Lehrveranstaltungen\2020ws\01-BP1-AutoWin-0164\studentenarbeiten\g1\test\oha\-?-fileNameWithUnicodeChar-U+25D0.txt] *does NOT****exist! ~c2x=[453A5C5755...]* 2: [E:\WU\Lehrveranstaltungen\2020ws\01-BP1-AutoWin-0164\studentenarbeiten\g1\test\oha\testDir.rex] exists! 3: [E:\WU\Lehrveranstaltungen\2020ws\01-BP1-AutoWin-0164\studentenarbeiten\g1\test\oha\testSysFileTree.rex] exists! --- These kind of filenames containing some Unicode character(s) pop-up more and more, depending on the student's background (who come from many parts of the world). So something ought to be done about it. ---rony P.S.: Also more and more Windows programs create/save text files encoded in Unicode for which linein and lineout ought to work as well. [1] "Windows code page", Wikipedia: <https://en.wikipedia.org/wiki/Windows_code_page>
test.7z
Description: Binary data
_______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel