OS X: UTF-8 filename problems
-----------------------------
Key: JRUBY-3358
URL: http://jira.codehaus.org/browse/JRUBY-3358
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1.4
Environment: Mac OS X 10.5.6 on Intel. Using JRuby bundled with
Netbeans 6.5 + Ruby on Rails (patch pack 2).
Reporter: Martin Eskildsen
Assume we're in a dir with only one file, and that file has a name with UTF-8
characters in it, e.g. "æbler er så søde.txt" ("apples are so sweet", in
Danish), the following code fails with "no such file or directory":
f = Dir.entries(".")[2]
s = File.stat(f)
The issue appears to be that the filename passed to File.stat contains UTF-8
characters, but it's treated as ANSI by JRuby, and the filename therefore
doesn't exist.
--
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