Skip to content

Instantly share code, notes, and snippets.

@kana
Created May 4, 2011 14:46
Show Gist options
  • Save kana/955336 to your computer and use it in GitHub Desktop.
Save kana/955336 to your computer and use it in GitHub Desktop.
Strange behavior of Ruby Dir.glob on Mac OS X 10.5
$ 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]
@mikz
Copy link

mikz commented Feb 6, 2013

hi @kana
did you solved it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment