Ticket #3300 (closed bug: fixed)
System.IO and System.Directory functions not Unicode-aware under Windows
| Reported by: | shu | Owned by: | simonmar |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.12.1 |
| Component: | libraries/directory | Version: | 6.11 |
| Keywords: | unicode | Cc: | YitzGale |
| Operating System: | Windows | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
Under Windows, System.Directory.getDirectoryContents seems to apply encoding conversions on filenames at the syscall level.
I have several files with Japanese names, but my default program locale is English. Unicode-aware applications (that is, most modern Windows programs) have no problems with this. Calling getDirectoryContents on a folder with Japanese names, however, returns strings consisted of question marks "???".
If I switch the default program locale to, say, Japanese, then the files are returned in ShiftJIS, but I lose information such as accented Latin characters.
Change History
Note: See
TracTickets for help on using
tickets.
