* posix/fnmatch_loop.c: Recognize - at end of bracket expression
correctly.
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.
/* 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;