+2003-05-10 Bruno Haible <bruno@clisp.org>
+
+ * linebreak.c (iconv_string_length): Don't return -1 just because the
+ string is longer than 4 KB.
+
2003-05-12 Jim Meyering <jim@meyering.net>
* strftime.c (my_strftime): Let the `-' (no-pad) flag affect
char *outptr = tmpbuf;
size_t outsize = TMPBUFSIZE;
size_t res = iconv (cd, (ICONV_CONST char **) &inptr, &insize, &outptr, &outsize);
- if (res == (size_t)(-1))
+ if (res == (size_t)(-1) && errno != E2BIG)
return (size_t)(-1);
count += outptr - tmpbuf;
}