Reuben Thomas wrote:
> See https://sourceware.org/bugzilla/show_bug.cgi?id=29913
> 
> This is a bug I just came across (in my capacity as maintainer of Recode)
> in current glibc.
> 
> glibc iconv(3) can return EILSEQ when the input is merely untranslatable,
> rather than invalid. This is directly contrary to the POSIX spec

No, this is not contrary to POSIX. I explain it in the ticket you cited.

> So, it would be nice if gnulib detected this problem.

No, we won't do that. Gnulib is meant to make GNU and POSIX compatible
behaviour available to applications on all platforms. The requested
behaviour, which amounts to adding //TRANSLIT implicitly to *all*
iconv conversions, would be a degradation compared to what we have in
glibc and GNU libiconv.

> (Then I would of course use GNU libiconv!)

It won't help you, since it implements the same behaviour: strict
conversion checking when //TRANSLIT or //IGNORE is not specified, and
loose conversion when //TRANSLIT is specified.

Bruno




Reply via email to