This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: final iconv call is buggy


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   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]