<<< Date Index >>>     <<< Thread Index >>>

Re: display of CP-1258



Thomas Roessler <roessler@xxxxxxxxxxxxxxxxxx>:

> On 2004-02-03 00:14:46 +0100, Alain Bench wrote:
> 
> >     Can you reproduce that? Someone has an idea what's wrong?
> 
> The problem is reproducible here.  Edmund? ;-)

It looks as though the problem is that the iconv_t gets stuck in a
broken state after there is an error, which might be a bug in iconv.
I'll investigate some more.

This patch is not (yet) a proposed solution, but it does make this
particular problem disappear and is evidence for the problem being
what I suspect it is.


Index: charset.c
===================================================================
RCS file: /home/roessler/cvs/mutt/charset.c,v
retrieving revision 3.6
diff -u -r3.6 charset.c
--- charset.c   11 Dec 2002 11:19:39 -0000      3.6
+++ charset.c   4 Feb 2004 09:32:42 -0000
@@ -357,6 +357,7 @@
       ret += ret1;
     if (ibl && obl && errno == EILSEQ)
     {
+      iconv (cd, 0, 0, 0, 0);
       if (inrepls)
       {
        /* Try replacing the input */