Re: mutt/2043: mutt invariably crashes when reading certain selected
The following reply was made to PR mutt/2043; it has been noted by GNATS.
From: Alain Bench <veronatif@xxxxxxx>
To: bug-any@xxxxxxxxxxxxx
Cc: Steven Schneider <steven_schneider@xxxxxxxxx>
Subject: Re: mutt/2043: mutt invariably crashes when reading certain selected
e-mails
Date: Sat, 20 Aug 2005 03:01:01 +0200 (CEST)
On Friday, August 19, 2005 at 3:03:06 PM -0600, Steven Schneider wro=
te:
>| System: OpenBSD 3.8 (i386) [using ncurses 5.2] [using libiconv 1.9=
]
>| -LOCALES_HACK +HAVE_WC_FUNCS -HAVE_LANGINFO_CODESET
>>| $ printenv | egrep "^(LANG|LC_)" | sort
> This didn't report anything, which is not really surprising as I ha=
d
> never defined any language variables for my environment.
These settings are vital for Mutt. There exist fallbacks to go
without, but one is not adapted to your case, and the other is not
activated. Even with them it would be degraded functionality anyway..=
.
Repeat: A correct locale is vital for Mutt.
What is your language? Country? What are available locale values =
on
your system? (might be "ls /usr/share/locale/" showing "en_US.ISO8859=
-1"
or such).
>| set pgp_decode_command=3D"/usr/local/bin/gpg --charset utf-8
All those "--charset utf-8" options are good only if your termina=
l
has an UTF-8 character set. What terminal do you use? What character(=
s)
do you see typing:
| $ printf "\xC3\xA9"
| =C3=A9
- 1 character "=E9": lowercase "e" with acute accent=09=3D=3D> UTF-8
- 2 chars "=C3=A9": Upercase A tilde, and copyright sign=09=3D=3D> L=
atin-1
- Other(s)?
> Well, since upgrading libiconv mutt hasn't crashed.
Ah OK, I hadn't understood that. I thought the example mail crash=
ed
consistently. Hum... I assume that asking you to downgrade libiconv
temporarily to restore crashing would be too much?
> I could put some comments before those settings to remind myself wh=
y
> they are there, and comment them out as well. Then if mutt crashes
> again, and I suspect that it is due to similar conditions I can
> uncomment them, and see if they make a difference.
Yes: Good plan.
> Btw, with these settings mutt still reports charset=3D"iso-8859-1".
Because of the &reset to a conservative default. To see the curre=
nt
value of the variable, use just ?show:
| :set ?charset
| set charset=3D"us-ascii//TRANSLIT"
Bye!=09Alain.
--=20
Everything about locales on Sven Mascheck's excellent site at new
location <URL:http://www.in-ulm.de/~mascheck/locale/>. The little tes=
ter
utility is at <URL:http://www.in-ulm.de/~mascheck/locale/checklocale.=
c>.