summaryrefslogtreecommitdiff
path: root/string/strxfrm.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-03-19 21:40:15 +0000
committerUlrich Drepper <drepper@redhat.com>2001-03-19 21:40:15 +0000
commit3c504879d9411bb9c57cc69774e1bc0c15a3ea7f (patch)
treee5f1b30ca00287e815d2fb16d5cc38124b3f8c88 /string/strxfrm.c
parentb28dcd8e13e40f1f894a2057466fc7867d07c76c (diff)
Update.
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.
Diffstat (limited to 'string/strxfrm.c')
-rw-r--r--string/strxfrm.c2
1 files changed, 1 insertions, 1 deletions
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