Skip to content

Commit cce300c

Browse files
committed
dir.c: glob cases on case-insensitive system
* dir.c (glob_make_pattern): all alphabets are magic characters on case-insensitive filesystems. [ruby-core:42469] [Feature ruby#5994] git-svn-id: svn+ssh://svn.ruby-lang.org/ruby/trunk@44802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 10322b4 commit cce300c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Tue Feb 4 12:45:15 2014 Nobuyoshi Nakada <[email protected]>
2+
3+
* dir.c (glob_make_pattern): all alphabets are magic characters on
4+
case-insensitive filesystems. [ruby-core:42469] [Feature #5994]
5+
16
Tue Feb 4 09:47:57 2014 Eric Hodel <[email protected]>
27

38
* lib/rubygems: Update to RubyGems 2.2.2 prerelease to check fixes to

dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ glob_make_pattern(const char *p, const char *e, int flags, rb_encoding *enc)
12101210
}
12111211
else {
12121212
const char *m = find_dirsep(p, e, flags, enc);
1213-
int magic = has_magic(p, m, flags, enc);
1213+
const int magic = FNM_SYSCASE || HAVE_HFS || has_magic(p, m, flags, enc);
12141214
char *buf;
12151215

12161216
if (!magic && !recursive && *m) {

0 commit comments

Comments
 (0)