diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-08-14 22:29:43 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-08-14 22:29:43 +0000 |
commit | ecad39f050c89d63673101ae0d6b54fb2dfbed1b (patch) | |
tree | f9dcb3942e37ff87e9f3866b9f6e54daeb681c9c /localedata/bug-iconv-trans.c | |
parent | 1b46e4a5a24d5049ef90cf16a6a851bf796b5782 (diff) | |
download | glibc-ecad39f050c89d63673101ae0d6b54fb2dfbed1b.zip glibc-ecad39f050c89d63673101ae0d6b54fb2dfbed1b.tar.gz glibc-ecad39f050c89d63673101ae0d6b54fb2dfbed1b.tar.bz2 |
Update.
2001-08-14 Ulrich Drepper <drepper@redhat.com>
* Makefile: Add rules to build and run tst-xlocale1.
* tst-xlocale1.c: New file.
* bug-iconv-trans.c: Improve error messages.
Diffstat (limited to 'localedata/bug-iconv-trans.c')
-rw-r--r-- | localedata/bug-iconv-trans.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/localedata/bug-iconv-trans.c b/localedata/bug-iconv-trans.c index 8387699..3886247 100644 --- a/localedata/bug-iconv-trans.c +++ b/localedata/bug-iconv-trans.c @@ -33,7 +33,10 @@ main (void) n = iconv (cd, &inptr, &inlen, &outptr, &outlen); if (n != 7) { - printf ("iconv() returned %Zd, expected 7\n", n); + if (n == (size_t) -1) + printf ("iconv() returned error: %m\n"); + else + printf ("iconv() returned %Zd, expected 7\n", n); result = 1; } if (inlen != 0) |