ruby-changes:11560
From: mame <ko1@a...>
Date: Fri, 17 Apr 2009 00:50:44 +0900 (JST)
Subject: [ruby-changes:11560] Ruby:r23194 (trunk): * dir.c (bracket): fix escape handling for range character in bracket
mame 2009-04-17 00:48:25 +0900 (Fri, 17 Apr 2009) New Revision: 23194 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23194 Log: * dir.c (bracket): fix escape handling for range character in bracket of fnmatch pattern. e.g., '[a\-c]' should not match 'b'. Modified files: trunk/ChangeLog trunk/dir.c Index: ChangeLog =================================================================== --- ChangeLog (revision 23193) +++ ChangeLog (revision 23194) @@ -1,3 +1,8 @@ +Fri Apr 17 00:45:09 2009 Yusuke Endoh <mame@t...> + + * 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@f...> * class.c (rb_define_method_id): use rb_define_notimplement_method_id Index: dir.c =================================================================== --- dir.c (revision 23193) +++ dir.c (revision 23194) @@ -109,7 +109,7 @@ 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/