aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--NEWS5
-rw-r--r--posix/tst-fnmatch.input8
-rw-r--r--string/tst-strxfrm.c15
4 files changed, 30 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d34f0e0..2ee7f91 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 <hjl@gnu.org>
diff --git a/NEWS b/NEWS
index 824c703..85b2b22 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 764fe96..faea8e2 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 94fd67e..aef5e4e 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;