]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid an unjustified "conversion error" on long strings.
authorBruno Haible <bruno@clisp.org>
Mon, 12 May 2003 09:45:47 +0000 (09:45 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:28 +0000 (12:10 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/msgl-iconv.c

index ced807b5cb4cd2ad0809eceb86184d0b88165a70..38e7343dab4ac352e0e54ec8a2220248c3cee672 100644 (file)
@@ -1,3 +1,9 @@
+2003-05-10  Bruno Haible  <bruno@clisp.org>
+
+       * msgl-iconv.c (iconv_string): Don't return -1 just because the string
+       is longer than 4 KB.
+       Reported by Denis Barbier <barbier@linuxfr.org>.
+
 2003-05-04  Bruno Haible  <bruno@clisp.org>
 
        * po-lex.h (po_gram_error): Don't use ISO C 99 feature on DEC C.
index 1bebd615733f7e1b5d06a05d68700761b9127e5f..e32c6bf2edbd64e887d51c2da4a209043decf0c4 100644 (file)
@@ -84,7 +84,9 @@ iconv_string (iconv_t cd, const char *start, const char *end,
 
        if (res == (size_t)(-1))
          {
-           if (errno == EINVAL)
+           if (errno == E2BIG)
+             ;
+           else if (errno == EINVAL)
              break;
            else
              return -1;