Projects

Ticket #465 (closed defect: fixed)

Opened 2 years ago

Last modified 23 months ago

[0.5b2] Problem walking directory trees with unicode filenames

Reported by: roberto@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.6
Component: MacRuby Keywords:
Cc:

Description

OS X 10.6.2 / macruby 0.5b2

I have a script that walk a given directory tree looking for photos (jpg, raw and all that) called find-photos.rb (see attached file).

When running in on trees with unicode characters in filenames (such as the ones generated by iPhoto), it fails to read the name with the following error. MRI 1.8 & YARV 1.9.1 succeeds. Interestingly enough, jRuby fails the same way as macruby.

Ticket in jRuby is  [JRUBY-3032]

Attachments

find-photos.rb Download (4.8 KB) - added by roberto@… 2 years ago.
find-photos.rb

Change History

Changed 2 years ago by roberto@…

find-photos.rb

Changed 2 years ago by roberto@…

Sorry, send it too fast. Here is the error message:

IMAG0024

jpg: Cambridge/IMAG0024.jpg (626541)

IMAG0026

jpg: Cambridge/IMAG0026.jpg (752489)

IMAG0028

jpg: Cambridge/IMAG0028.jpg (759544)

IMG_0001

JPG: iPhoto Library/Modified/2009/Erwan à Pornichet//IMG_0001.JPG (1163888) JPG: iPhoto Library/Originals/2009/Erwan à Pornichet//IMG_0001.JPG (1108306) jpg: iPhoto Library/Data/2009/Erwan à Pornichet//IMG_0001.jpg (49972)

IMG_0002 core:in `size:': No such file or directory - /Volumes/Users/roberto/Pictures/iPhoto Library/Modified/2009/Crèperie à Saint-Nazaire/I/IMG_0002.JPGlumes/Users/roberto/Pictures/Photo Library/2007/12/12/IGP04545.dng (Errno::ENOENT)

from core:in `each' from core:in `each' from ./find-photos.rb:100:in `each' from core:in `each' from ./find-photos.rb:223:in `main:'

Changed 23 months ago by martinlagardette@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to MacRuby 0.6

Fixed with the new ICU branch merge :-)

Changed 23 months ago by roberto@…

Fix confirmed, thanks!

Note: See TracTickets for help on using tickets.