From 95eaff64c7276cce271e368f097dea0c40ccb8b5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 27 Oct 2001 03:00:50 +0000 Subject: [PATCH] Update. * posix/tst-fnmatch.input: Add tests for - at beginning and end of bracket expression. * string/tst-strxfrm.c (test): Also test __strxfrm_l. --- ChangeLog | 3 +++ NEWS | 5 ++++- posix/tst-fnmatch.input | 8 ++++++++ string/tst-strxfrm.c | 15 +++++++++++++++ 4 files changed, 30 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d34f0e0fa1..2ee7f912c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,9 +2,12 @@ * posix/fnmatch_loop.c: Recognize - at end of bracket expression 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 nrules value. + * string/tst-strxfrm.c (test): Also test __strxfrm_l. 2001-10-24 H.J. Lu diff --git a/NEWS b/NEWS index 824c7037ed..85b2b22774 100644 --- a/NEWS +++ b/NEWS @@ -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. 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 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 * Stephen Moshier implemented cosh, expm1, log1p, acos, sinh, tanh, diff --git a/posix/tst-fnmatch.input b/posix/tst-fnmatch.input index 764fe962d3..faea8e2f9b 100644 --- a/posix/tst-fnmatch.input +++ b/posix/tst-fnmatch.input @@ -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 "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 # locales other than the C locale. The main focus of the tests is on the diff --git a/string/tst-strxfrm.c b/string/tst-strxfrm.c index 94fd67e062..aef5e4e4ee 100644 --- a/string/tst-strxfrm.c +++ b/string/tst-strxfrm.c @@ -15,6 +15,7 @@ test (const char *locale) size_t r; size_t l; char *buf; + __locale_t loc; int result = 0; if (setlocale (LC_COLLATE, locale) == NULL) @@ -37,6 +38,20 @@ test (const char *locale) locale, r, l); 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); return result;