1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00
2001-03-19  Ulrich Drepper  <drepper@redhat.com>

	* string/Makefile (tests): Add tst-strxfrm.
	* string/tst-strxfrm.c: New file.  Based on a test case by Paul Eggert.
	* string/Depend: New file.

2001-03-19  Paul Eggert  <eggert@twinsun.com>

	* string/strxfrm.c (strxfrm): strxfrm should return 0, not 1,
	when given the empty string in nontrivial locales.
This commit is contained in:
Ulrich Drepper
2001-03-19 21:40:15 +00:00
parent b28dcd8e13
commit 3c504879d9
5 changed files with 70 additions and 2 deletions

View File

@@ -162,7 +162,7 @@ STRXFRM (STRING_TYPE *dest, const STRING_TYPE *src, size_t n, __locale_t l)
{
if (n != 0)
*dest = L('\0');
return 1;
return 0;
}
/* We need the elements of the string as unsigned values since they