On Tuesday 15 December 2015 16:20:04 Andries E. Brouwer wrote:
> On Tue, Dec 15, 2015 at 10:33:10AM +0100, Tim Ruehsen wrote:
> > On Monday 14 December 2015 18:33:38 Eli Zaretskii wrote:
> > >  1. The functions that call 'iconv' (in iri.c) don't make a point of
> > >  
> > >     flushing the last portion of the converted URL after 'iconv'
> > >     returns successfully having converted the input string in its
> > >     entirety.  IME, you need then to call 'iconv' one last time
> > 
> > You are absolutely right.
> > Attached is a small test C code that shows (and fixes) the problem.
> 
> Yes. See also https://sourceware.org/bugzilla/show_bug.cgi?id=1124

Thanks, Andries.

2005... that's a real old issue but exactly our issue.
The iconv man page still doesn't explain it well and doesn't make clear that 
you should not miss the second call with NULL input parameters.

I wonder how many source codes are still affected...

Any volunteer to file a bug against the iconv man page ?

Tim


Reply via email to