diff --git a/ChangeLog b/ChangeLog index a571b56d58..aa0e7e124f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Feb 4 12:45:15 2014 Nobuyoshi Nakada + + * dir.c (glob_make_pattern): all alphabets are magic characters on + case-insensitive filesystems. [ruby-core:42469] [Feature #5994] + Tue Feb 4 09:47:57 2014 Eric Hodel * lib/rubygems: Update to RubyGems 2.2.2 prerelease to check fixes to diff --git a/dir.c b/dir.c index 4fe2c8832f..6eb8c9ef1c 100644 --- a/dir.c +++ b/dir.c @@ -1210,7 +1210,7 @@ glob_make_pattern(const char *p, const char *e, int flags, rb_encoding *enc) } else { const char *m = find_dirsep(p, e, flags, enc); - int magic = has_magic(p, m, flags, enc); + const int magic = FNM_SYSCASE || HAVE_HFS || has_magic(p, m, flags, enc); char *buf; if (!magic && !recursive && *m) {