iconv() will return -1 if output buffer is exhausted
commit3d89d4a7612dcd1d091fb7f020e949e040a11d80
authorPetr Písař <petr.pisar@atlas.cz>
Wed, 17 Mar 2010 16:26:07 +0000 (17 17:26 +0100)
committerPetr Písař <petr.pisar@atlas.cz>
Wed, 17 Mar 2010 16:26:07 +0000 (17 17:26 +0100)
treeff26519ce55855d3e88580cc4ceb682dfe451ea8
parentd0f763eb9657a3c2cacc7b709c8c83697d632454
iconv() will return -1 if output buffer is exhausted

In that case errno == E2BIG and conversion conversion can continue after
enlarging output buffer.

This bug has not been found because UTF-8 encoding consumes more space than
8 bit encodings used in Czech.
src/utils.c