[patch] be more liberal in accepting wrongly encoded national chars
- From: Albrecht Dreß <albrecht dress arcor de>
- To: Balsa-Liste <balsa-list gnome org>
- Cc: Laurent Duperval <laurent duperval microcell ca>
- Subject: [patch] be more liberal in accepting wrongly encoded national chars
- Date: Sat, 8 Feb 2003 15:03:46 +0100
I sometimes get mails containing 8-bit characters, but without the proper
MIME framework according to rfc 2045 and friends. Balsa 2 displays these
characters as "?" as there is no info on how to treat them.
This is of course a problem of the sender's broken MUA (or, sometimes, may
be caused by shell scripts sending mails), but imho we could follow the
suggestion in the rfc to be liberal in what we accept and silently assume
ISO-8859-1 as a reasonable 8-bit charset in this case. The patch is just a
one-liner for libmutt (see below).
Opinions?
Cheers,
Albrecht.
~~~~~snip here
--- balsa/libmutt/handler.c Sat Sep 14 14:54:45 2002
+++ balsa-patched/libmutt/handler.c Fri Feb 7 13:34:57 2003
@@ -1719,7 +1719,7 @@
#ifdef LIBMUTT
/* a reasonable default for Charset! */
if (Charset)
- cd = mutt_iconv_open (Charset, charset ? charset : "us-ascii",
+ cd = mutt_iconv_open (Charset, charset ? charset : "iso-8859-1",
M_ICONV_HOOK_FROM);
#else
if (charset && Charset)
~~~~~snip here
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Albrecht Dreß - Johanna-Kirchner-Straße 13 - D-53123 Bonn (Germany)
Phone (+49) 228 6199571 - mailto:albrecht.dress@arcor.de
_________________________________________________________________________
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]