From 3c504879d9411bb9c57cc69774e1bc0c15a3ea7f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 19 Mar 2001 21:40:15 +0000 Subject: Update. 2001-03-19 Ulrich Drepper * 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 * string/strxfrm.c (strxfrm): strxfrm should return 0, not 1, when given the empty string in nontrivial locales. --- string/strxfrm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string/strxfrm.c') diff --git a/string/strxfrm.c b/string/strxfrm.c index 38be80bea7..9c9165708b 100644 --- a/string/strxfrm.c +++ b/string/strxfrm.c @@ -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 -- cgit v1.2.3