mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-05 21:00:05 +00:00
Update.
* posix/fnmatch_loop.c: Recognize - at end of bracket expression correctly.
This commit is contained in:
parent
ca6c73895d
commit
be29c482f7
@ -1,5 +1,8 @@
|
||||
2001-10-26 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* posix/fnmatch_loop.c: Recognize - at end of bracket expression
|
||||
correctly.
|
||||
|
||||
* string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
|
||||
nrules value.
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user