From: Ulrich Drepper Date: Tue, 14 Aug 2001 22:29:43 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_2_4~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecad39f050c89d63673101ae0d6b54fb2dfbed1b;p=thirdparty%2Fglibc.git Update. 2001-08-14 Ulrich Drepper * Makefile: Add rules to build and run tst-xlocale1. * tst-xlocale1.c: New file. * bug-iconv-trans.c: Improve error messages. --- diff --git a/localedata/ChangeLog b/localedata/ChangeLog index 45d2c1c99b4..63aa9ce6391 100644 --- a/localedata/ChangeLog +++ b/localedata/ChangeLog @@ -1,3 +1,10 @@ +2001-08-14 Ulrich Drepper + + * Makefile: Add rules to build and run tst-xlocale1. + * tst-xlocale1.c: New file. + + * bug-iconv-trans.c: Improve error messages. + 2001-08-12 Ulrich Drepper * charmaps/ISO-IR-209: New file. diff --git a/localedata/Makefile b/localedata/Makefile index 8866b693e41..5380f41d4a0 100644 --- a/localedata/Makefile +++ b/localedata/Makefile @@ -91,7 +91,7 @@ locale_test_suite := tst_iswalnum tst_iswalpha tst_iswcntrl \ tst_wctype tst_wcwidth tests = $(locale_test_suite) tst-digits tst-setlocale bug-iconv-trans \ - tst-leaks tst-mbswcs6 + tst-leaks tst-mbswcs6 tst-xlocale1 ifeq (yes,$(build-shared)) ifneq (no,$(PERL)) tests: $(objpfx)mtrace-tst-leaks @@ -271,6 +271,7 @@ tst_wctype-ENV = $(TEST_MBWC_ENV) tst_wcwidth-ENV = $(TEST_MBWC_ENV) tst-digits-ENV = $(TEST_MBWC_ENV) tst-mbswcs6-ENV = $(TEST_MBWC_ENV) +tst-xlocale1-ENV = $(TEST_MBWC_ENV) tst-setlocale-ENV = LOCPATH=$(common-objpfx)localedata LC_ALL=ja_JP.EUC-JP diff --git a/localedata/bug-iconv-trans.c b/localedata/bug-iconv-trans.c index 83876994df6..3886247c387 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)