Created
May 4, 2011 14:46
-
-
Save kana/955336 to your computer and use it in GitHub Desktop.
Strange behavior of Ruby Dir.glob on Mac OS X 10.5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ uname | |
Darwin | |
$ mount | |
/dev/disk0s2 on / (hfs, local, journaled) | |
devfs on /dev (devfs, local) | |
fdesc on /dev (fdesc, union) | |
map -hosts on /net (autofs, automounted) | |
map auto_home on /home (autofs, automounted) | |
$ ruby -e 'p (Dir.glob "/a", File::FNM_CASEFOLD)' | |
-e:1:in `glob': invalid byte sequence in US-ASCII (ArgumentError) | |
from -e:1:in `<main>' | |
$ ruby --version | |
ruby 1.9.2p180 (2011-02-18 revision 30909) [i386-darwin9.8.0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi @kana
did you solved it?