* posix/tst-fnmatch.input: Add tests for - at beginning and end of
	bracket expression.
	* string/tst-strxfrm.c (test): Also test __strxfrm_l.
This commit is contained in:
Ulrich Drepper 2001-10-27 03:00:50 +00:00
parent be29c482f7
commit 95eaff64c7
4 changed files with 30 additions and 1 deletions

View File

@ -2,9 +2,12 @@
* posix/fnmatch_loop.c: Recognize - at end of bracket expression * posix/fnmatch_loop.c: Recognize - at end of bracket expression
correctly. correctly.
* posix/tst-fnmatch.input: Add tests for - at beginning and end of
bracket expression.
* string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
nrules value. nrules value.
* string/tst-strxfrm.c (test): Also test __strxfrm_l.
2001-10-24 H.J. Lu <hjl@gnu.org> 2001-10-24 H.J. Lu <hjl@gnu.org>

5
NEWS
View File

@ -1,4 +1,4 @@
GNU C Library NEWS -- history of user-visible changes. 2001-10-14 GNU C Library NEWS -- history of user-visible changes. 2001-10-26
Copyright (C) 1992-2000, 2001 Free Software Foundation, Inc. Copyright (C) 1992-2000, 2001 Free Software Foundation, Inc.
See the end for copying conditions. See the end for copying conditions.
@ -19,6 +19,9 @@ Version 2.2.5
* libc functions using I/O streams now can handle wide-oriented streams * libc functions using I/O streams now can handle wide-oriented streams
as well. as well.
* optimizations in the dynamic linker. binaries created by recent binutils
versions start up quicker due to reduced time spend on relocations.
Version 2.2.4 Version 2.2.4
* Stephen Moshier implemented cosh, expm1, log1p, acos, sinh, tanh, * Stephen Moshier implemented cosh, expm1, log1p, acos, sinh, tanh,

View File

@ -381,6 +381,14 @@ C "a" "a/" NOMATCH PATHNAME
C "a/" "a" NOMATCH PATHNAME C "a/" "a" NOMATCH PATHNAME
C "//a" "/a" NOMATCH PATHNAME C "//a" "/a" NOMATCH PATHNAME
C "/a" "//a" NOMATCH PATHNAME C "/a" "//a" NOMATCH PATHNAME
C "az" "[a-]z" 0
C "bz" "[ab-]z" 0
C "cz" "[ab-]z" NOMATCH
C "-z" "[ab-]z" 0
C "az" "[-a]z" 0
C "bz" "[-ab]z" 0
C "cz" "[-ab]z" NOMATCH
C "-z" "[-ab]z" 0
# Following are tests outside the scope of IEEE 2003.2 since they are using # Following are tests outside the scope of IEEE 2003.2 since they are using
# locales other than the C locale. The main focus of the tests is on the # locales other than the C locale. The main focus of the tests is on the

View File

@ -15,6 +15,7 @@ test (const char *locale)
size_t r; size_t r;
size_t l; size_t l;
char *buf; char *buf;
__locale_t loc;
int result = 0; int result = 0;
if (setlocale (LC_COLLATE, locale) == NULL) if (setlocale (LC_COLLATE, locale) == NULL)
@ -37,6 +38,20 @@ test (const char *locale)
locale, r, l); locale, r, l);
result = 1; result = 1;
} }
loc = __newlocale (1 << LC_ALL, locale, NULL);
r = __strxfrm_l (buf, string, bufsize, loc);
l = strlen (buf);
if (r != l)
{
printf ("locale \"%s\": strxfrm_l returned %zu, strlen returned %zu\n",
locale, r, l);
result = 1;
}
__freelocale (loc);
free (buf); free (buf);
return result; return result;