From: Ulrich Drepper Date: Sat, 27 Oct 2001 00:38:28 +0000 (+0000) Subject: Update. X-Git-Tag: upstream/2.30~22409 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be29c482f7aa4042f2b4eaf6a55eed299a2d94e2;p=external%2Fglibc.git Update. * posix/fnmatch_loop.c: Recognize - at end of bracket expression correctly. --- diff --git a/ChangeLog b/ChangeLog index 90bdec7..d34f0e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2001-10-26 Ulrich Drepper + * posix/fnmatch_loop.c: Recognize - at end of bracket expression + correctly. + * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get nrules value. diff --git a/posix/fnmatch_loop.c b/posix/fnmatch_loop.c index 4c6168a..8bdd9a6 100644 --- a/posix/fnmatch_loop.c +++ b/posix/fnmatch_loop.c @@ -592,7 +592,8 @@ FCT (pattern, string, string_end, no_leading_period, flags) /* We have to handling the symbols differently in ranges since then the collation sequence is important. */ - is_range = *p == L('-') && p[1] != L('\0'); + is_range = (*p == L('-') && p[1] != L('\0') + && p[1] != L(']')); if (!is_range && c == fn) goto matched;