summaryrefslogtreecommitdiff
path: root/localedata/bug-iconv-trans.c
diff options
context:
space:
mode:
Diffstat (limited to 'localedata/bug-iconv-trans.c')
-rw-r--r--localedata/bug-iconv-trans.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/localedata/bug-iconv-trans.c b/localedata/bug-iconv-trans.c
index 83876994df..3886247c38 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)