final iconv call is buggy
Ulrich Drepper
drepper@cygnus.com
Mon Dec 20 23:24:00 GMT 1999
Bruno Haible <haible@ilog.fr> writes:
> In glibc-2.1.1, calling iconv(3) with a NULL pointer as inptr (the documented
> way to emit the shift sequences which returns to the initial state) produces
> wrong results. It produces many output bytes even though the previous
> iconv() call has terminated with inbytesleft == 0 and both encodings are
> stateless. In this case it should simply return 0 without doing anything.
The immediate problem you've seen is fixed. But I had to fix gconv.c
a bit to make it work. It should work with 2.1.3 now. Thanks,
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------
More information about the Libc-alpha
mailing list