Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: JRuby 1.1.4
-
Fix Version/s: None
-
Component/s: Core Classes/Modules
-
Labels:None
Description
The attached script fails to successfully walk directories that have unicode characters in them. For example, this path:
iPhoto Library/Originals/2006/23 août 2006/IMG_0013.JPG
Fails with this error:
/Volumes/Users/roberto/Shell/find-photos.rb:237:in `main': No such file or directory - No such file or directory - /Volumes/Users/roberto/Pictures/iPhoto Library/Originals/2006/23 ao????t 2006/IMG_0013.JPG (Errno::ENOENT) from /Volumes/Users/roberto/Shell/find-photos.rb:235:in `each'
We're obviously not decoding/encoding a string correctly somewhere and the unicode chars are demolished as a result.
Issue Links
- duplicates
-
JRUBY-3379
Windows file encoding issue - unicode characters like æ ø å
-
- is duplicated by
-
JRUBY-5905
Windows: JRuby (jgem) throws error if user directory containcs Central European (non-Latin) characters
-
Please note that MacRuby 0.5b2 has a similar issue so I have opened a similar ticket there.
https://www.macruby.org/trac/ticket/465