Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.1.4, JRuby 1.1.5
-
Fix Version/s: None
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:Windows XP sp2(traditional chinese), jruby1.1.5, jruby 1.1.4 with netbeans6.5
-
Testcase included:yes
Description
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)
Issue Links
- is related to
-
JRUBY-2812
Problems in getting access to files who has Chinese charactors in name.
-
a little test case