Re: [Haskell-cafe] Unicode workaround for getDirectoryContents under Windows?

2009-06-14 Thread Bulat Ziganshin
Hello Shu-yu, Sunday, June 14, 2009, 7:41:46 AM, you wrote: It seems like getDirectoryContents applies codepage conversion based it's not a bug, but old-fashioned architecture of entire file apis you may find my Win32Files.hs module useful - it adopts UTF-16 versions of file operations

[Haskell-cafe] Unicode workaround for getDirectoryContents under Windows?

2009-06-13 Thread Shu-yu Guo
Hello all, It seems like getDirectoryContents applies codepage conversion based on the default program locale under Windows. What this means is that if my default codepage is some kind of Latin, Asian glyphs get returned as '?' in the filename. By '?' I don't mean that the font is lacking the

Re: [Haskell-cafe] Unicode workaround for getDirectoryContents under Windows?

2009-06-13 Thread Judah Jacobson
On Sat, Jun 13, 2009 at 8:41 PM, Shu-yu Guos...@rfrn.org wrote: Hello all, It seems like getDirectoryContents applies codepage conversion based on the default program locale under Windows. What this means is that if my default codepage is some kind of Latin, Asian glyphs get returned as '?'