Snaury Miyoto wrote: > Yukihiro Matsumoto wrote: >> Then how can it >> determine which should be in the current code page, or in Unicode? >> Or using Win32 API ending with W could allow you living in the >> Unicode? > Well, currently (just downloaded latest cvs sources) ruby uses ansi > versions of CreateFile and FindFirstFile/FindNextFile APIs, so even if I > say, for example, KCODE to UTF-8 (not sure how you can currently make > ruby work with UTF-8) ansi versions of APIs are still called, and that > means that > The same with win32ole extension, I can see a lot of ole_wc2mb/ole_mb2wc > there, which breaks things horribly when interoperating with, for > example, Excel and trying to work with russian/greek/japanese and all > other languages all on the same sheet (after I process the sheet, > modifying all of the cells, it will just strip all languages except > russian from it). Ah, well, for ole that's not true, only now I realized I can set codepage there to UTF-8, but still similar thing for win32 file io (and maybe for other things where win32 API or win32 cruntime used) would be great. -- Posted via http://www.ruby-forum.com/.