#3300: System.Directory.getDirectoryContents not unicode-aware under Windows
-----------------------------+----------------------------------------------
Reporter: shu | Owner:
Type: bug | Status: new
Priority: normal | Component: libraries/directory
Version: 6.10.3 | Severity: major
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
-----------------------------+----------------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3300>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs