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

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



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

Attachment: gb2312failure.gz
Description: application/gunzip