iconv(1) doesn't count irreversible character when iconv_t is flushed by calling iconv(NULL).

Issue #14 closed
Takehiko NOZAKI repo owner created an issue
    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)

  1. Log in to comment