Ruby File and Dir cant using non-english path
---------------------------------------------

                 Key: JRUBY-3168
                 URL: http://jira.codehaus.org/browse/JRUBY-3168
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1.5, JRuby 1.1.4
         Environment: Windows XP sp2(traditional chinese), jruby1.1.5, jruby 
1.1.4 with netbeans6.5
            Reporter: koji lin


found this problem when creating a project in chinese path name.
like 'D:/我的文件/RubyApplication12'
then it shows cant find rake tasks.

the problem occurs at rake.rb's Dir.chdir.

so i try to test File.open and Dir.chdir in jruby.
test code:
file = File.open("D:\\我的文件\\test.txt")
file.each() { |line|
  puts line # can print the content in the test.txt
}
puts file.path # print D:\????\test.txt
puts Dir.pwd #print D:/我的文件/RubyApplication12/lib
Dir.chdir("D:\\我的文件") # 
error->D:\????\RubyApplication12\lib\main.rb:13:in `chdir': No such file or 
directory - No such file or directory - D:\???????ยง???????????????? 
(Errno::ENOENT)




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to