зеркало из https://github.com/github/ruby.git
* dir.c (bracket): fix escape handling for range character in bracket
of fnmatch pattern. e.g., '[a\-c]' should not match 'b'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
c14689a0fd
Коммит
1b71f8f816
|
@ -1,3 +1,8 @@
|
|||
Fri Apr 17 00:45:09 2009 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* dir.c (bracket): fix escape handling for range character in bracket
|
||||
of fnmatch pattern. e.g., '[a\-c]' should not match 'b'.
|
||||
|
||||
Thu Apr 16 23:09:03 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* class.c (rb_define_method_id): use rb_define_notimplement_method_id
|
||||
|
|
2
dir.c
2
dir.c
|
@ -109,7 +109,7 @@ bracket(
|
|||
t1++;
|
||||
if (!*t1)
|
||||
return NULL;
|
||||
p += (r = rb_enc_mbclen(t1, pend, enc));
|
||||
p = t1 + (r = rb_enc_mbclen(t1, pend, enc));
|
||||
if (p[0] == '-' && p[1] != ']') {
|
||||
const char *t2 = p + 1;
|
||||
int r2;
|
||||
|
|
Загрузка…
Ссылка в новой задаче