зеркало из https://github.com/github/ruby.git
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 #5994] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
859ae7764c
Коммит
5b92c0bea3
|
@ -1,3 +1,8 @@
|
|||
Tue Feb 4 12:45:15 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* 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 <drbrain@segment7.net>
|
||||
|
||||
* lib/rubygems: Update to RubyGems 2.2.2 prerelease to check fixes to
|
||||
|
|
2
dir.c
2
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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче