diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-10-27 03:00:50 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-10-27 03:00:50 +0000 |
commit | 95eaff64c7276cce271e368f097dea0c40ccb8b5 (patch) | |
tree | 576e87e14f93654e3099c9f423a123f11d33b2d9 /string | |
parent | be29c482f7aa4042f2b4eaf6a55eed299a2d94e2 (diff) | |
download | glibc-95eaff64c7276cce271e368f097dea0c40ccb8b5.tar glibc-95eaff64c7276cce271e368f097dea0c40ccb8b5.tar.gz glibc-95eaff64c7276cce271e368f097dea0c40ccb8b5.tar.bz2 glibc-95eaff64c7276cce271e368f097dea0c40ccb8b5.zip |
Update.
* posix/tst-fnmatch.input: Add tests for - at beginning and end of
bracket expression.
* string/tst-strxfrm.c (test): Also test __strxfrm_l.
Diffstat (limited to 'string')
-rw-r--r-- | string/tst-strxfrm.c | 15 |
1 files changed, 15 insertions, 0 deletions
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; |