iconv(1) doesn't count irreversible character when iconv_t is flushed by calling iconv(NULL).
Issue #14
closed
151 /* reset the shift state of the output buffer */
152 outbytes = OUTBUFSIZE;
153 out = outbuf;
154 ret = iconv(cd, NULL, NULL, &out, &outbytes);
155 if (ret == (size_t)-1)
156 err(EXIT_FAILURE, "iconv()");
line 154, use __iconv() instead of iconv().
Comments (3)
-
reporter -
reporter - changed status to resolved
BUGFIX: Issue
#14-- iconv(1) doesn't count irreversible character when iconv_t is flushed by calling iconv(NULL).→ <<cset c1f8731a5a0e>>
-
reporter - changed status to closed
- Log in to comment
and more, flag __ICONV_F_HIDE_INVALID may ignored same reason.