From: Vit Ondruch Date: 2009-09-02T16:43:15+09:00 Subject: [ruby-core:25267] [Bug #2026] String encodings are not supported by most of IO on Linux Issue #2026 has been updated by Vit Ondruch. Ok, may be I started from wrong side. What I am trying to achieve is unicode support on Windows. I started playing with Dir.mkdir method which seems to be pretty simple. However, at the end it calls POSIX mkdir method, which from your words doesn't care too much about encoding. However, I have to care about encoding for Windows, since it is pretty clear that Windows using UTF-16LE. So what is your suggestion? There is no way how to ensure encoding which is coming into rb_w32_mkdir which is Windows implementation of mkdir. Initially I tried to start the discussion at http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/24993 post, but that did not attract too much attention, since it is probably too complex and there are several flaws. Therefore I tired to chose another way, which is passing UTF-8 encoded strings into rb_w32_mkdir. However, there is no way how to ensure the encoding as of now. Of course there could be some platform specific ifdefs in dir_s_mkdir but that will just clutter the code. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2026 ---------------------------------------- http://redmine.ruby-lang.org