1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
* 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

@ -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;