Gnus development mailing list
 help / color / mirror / Atom feed
* [bugfixed] mm-charset-override-alist isn't used in decoding headers
@ 2008-12-10 10:03 Katsumi Yamaoka
  2008-12-12 18:29 ` Reiner Steib
  0 siblings, 1 reply; 3+ messages in thread
From: Katsumi Yamaoka @ 2008-12-10 10:03 UTC (permalink / raw)
  To: ding

Hi,

I receive Japanese mails that are labeled with charset=gb2312,
however most of them use charset=gbk in reality.  So, Gnus normally
fails in decoding those messages.  Adding the `(gb2312 . gbk)' pair
to `mm-charset-override-alist' solves it in decoding bodies, however
it is not effective in decoding headers.  Here is an example:

(rfc2047-decode-string "=?gb2312?b?srubcg==?=")

I've fixed the rfc2047 decoder so as to use `mm-charset-override-alist'.

In addition, I've added the `(gb2312 . gbk)' pair to the custom
choices (not the default value) of `mm-charset-override-alist'.
Although the `gbk' charset is a superset of the `gb2312' charset,
the reason I didn't add the pair to the default value of
`mm-charset-override-alist' is that the `gbk' is not available in
Emacs 21 normally and there seemed to be no smart way to exclude
it in such Emacs versions.

(Note that that I mention here is the `gbk' charset, not the `gbk'
 coding system.  So, `mm-charset-to-coding-system' is the best
 choice for checking whether it is available or not.  However,
 when loading mm-util,elc the default value section and/or the
 `:set' section of `(defcustom mm-charset-override-alist ...)'
 are processed before defining that function.)

Regards,



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-12-15  4:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-10 10:03 [bugfixed] mm-charset-override-alist isn't used in decoding headers Katsumi Yamaoka
2008-12-12 18:29 ` Reiner Steib
2008-12-15  4:16   ` Katsumi Yamaoka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).