This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: final iconv call is buggy
- To: Bruno Haible <haible at ilog dot fr>
- Subject: Re: final iconv call is buggy
- From: Ulrich Drepper <drepper at cygnus dot com>
- Date: 20 Dec 1999 23:21:26 -0800
- Cc: libc-alpha at sourceware dot cygnus dot com
- References: <199912201559.QAA03810@oberkampf.ilog.fr>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
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 `------------------------