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

Re: mutt/2560: Mutt chokes on invalid charset in UTF environment



The following reply was made to PR mutt/2560; it has been noted by GNATS.

From: Christian Ebert <blacktrash@xxxxxxx>
To: Mutt Developers <mutt-dev@xxxxxxxx>
Cc: bug-any@xxxxxxxxxxxxx
Subject: Re: mutt/2560: Mutt chokes on invalid charset in UTF environment
Date: Thu, 7 Dec 2006 08:03:34 +0100

 --RnlQjJ0d97Da+TV1
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 * Vincent Lefevre on Wednesday, November 22, 2006 at 14:25:02 +0100:
 >  On 2006-11-22 08:28:16 +0000, Christian Ebert wrote:
 >> * Derek Martin on Wednesday, November 22, 2006 at 00:15:03 +0100:
 >>> Even if that works, it doesn't mean someone won't at a later date use
 >>> some encoding that somehow breaks iconv...  I missed the beginning of
 >>> the thread, so I apologize if I don't have a clear understanding of
 >>> what the submitter is seeing,
 >>
 >> Actually you have a very clear understanding of what you missed
 >> ;)
 >>
 >> I am seeing a freeze. The only way out is to Ctrl-Z to force
 >> quit.
 >>
 >>> but it sounds like mutt is silently failing and just does
 >>> nothing...
 >>
 >> Exactly.
 >  
 >  But if the freeze occurs in libiconv, Mutt can't do anything.
   
 Hm. I still think it would be better if would gave a warning than
 to just freeze.
 
 Be that as it may, I stumbled accross another evil example ;-):
 my old iconv has no trouble with attached message, whereas Mutt
 freezes and, again, I have to exit with signal 3 (<C-Z>). No fun
 to isolate the message in question in a big mailbox, I can tell
 you.
 
 It happens both with:
 
 Mutt 1.5.13 (2006-11-28)
 Copyright (C) 1996-2006 Michael R. Elkins and others.
 Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
 Mutt is free software, and you are welcome to redistribute it
 under certain conditions; type `mutt -vv' for details.
 
 System: Darwin 7.9.0 (Power Macintosh) [using ncurses 5.4] [using libiconv 
1.10] [using libidn 0.6.6 (compiled with 0.6.6)]
 Compile options:
 -DOMAIN
 -DEBUG
 -HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  
 +USE_FCNTL  -USE_FLOCK   -USE_INODESORT   
 -USE_POP  -USE_IMAP  -USE_GSS  -USE_SSL_OPENSSL  -USE_SSL_GNUTLS  -USE_SASL  
-HAVE_GETADDRINFO  
 +HAVE_REGCOMP  -USE_GNU_REGEX  
 +HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
 +HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
 -CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME  -CRYPT_BACKEND_GPGME 
 
 -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT  
 -ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  
+HAVE_LANGINFO_YESEXPR  
 +HAVE_ICONV  -ICONV_NONTRANS  +HAVE_LIBIDN  +HAVE_GETSID  +USE_HCACHE  
 -ISPELL
 SENDMAIL="/usr/sbin/sendmail"
 MAILPATH="/var/mail"
 PKGDATADIR="/usr/local/share/mutt"
 SYSCONFDIR="/usr/local/etc"
 EXECSHELL="/bin/sh"
 -MIXMASTER
 To contact the developers, please mail to <mutt-dev@xxxxxxxx>.
 To report a bug, please visit http://bugs.mutt.org/.
 
 and the above, including following patches:
 
 patch-1.5.10.tt.attach_charset.1
 patch-1.5.12.ab.doc_lacking_hooks.1
 patch-1.5.12.ab.M_ICONV_HOOK_sanitize.1
 patch-1.5.12.msyk.iconvhook.1-ab
 patch-1.5.9.tt+tamo.assumed.3
 
 
 What might be of help is the output of an python script I made
 that does a sort of iconv for the poor on messages. If I set
 errors to "strict" in that script, I get:
 
 |'gb2312' codec can't decode bytes in position 10-11: illegal multibyte 
sequence
 
 c
 -- 
 _B A U S T E L L E N_ lesen! --->> <http://www.blacktrash.org/baustellen.html>
 
 --RnlQjJ0d97Da+TV1
 Content-Type: application/x-gunzip
 Content-Disposition: attach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