Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ding@gnus.org
Subject: Re: [bugfixed] mm-charset-override-alist isn't used in decoding headers
Date: Mon, 15 Dec 2008 13:16:06 +0900	[thread overview]
Message-ID: <b4mzliym5tl.fsf@jpl.org> (raw)
In-Reply-To: <87myf1ckm2.fsf@marauder.physik.uni-ulm.de>

>>>>> Reiner Steib wrote:
> On Wed, Dec 10 2008, Katsumi Yamaoka wrote:

>> (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.)

> Would it help to move the defcustom down (or the defun up)?  Or would
> this introduce other problems?

Thanks.  There were two other reasons that made me hesitate to
add the `(gb2312 . gbk)' pair to `mm-charset-override-alist':

1. In Emacs 22 the `gbk' charset is available because of
`mm-charset-synonym-alist', however it does not support gbk
characters fully.  For example:

(rfc2047-decode-string "=?gbk?B?m3I=?=")
 => "\x9br"

2. In XEmacs 21.4 w/o the Mule feature,
(mm-charset-to-coding-system 'gbk) returns the symbol `gbk'.

But I decided to consider that 1. is not due to a Gnus bug, and
realized 2. is not a real problem (it won't get to be a straight
cause of an error, and it is a matter of course that non-Mule
XEmacs doesn't display gbk messages correctly).

So I've added the `(gb2312 . gbk)' pair to the default value of
`mm-charset-override-alist' for Emacsen that supports gbk, having
moved `mm-charset-to-coding-system' and `mm-charset-eval-alist'
forward.  In addition, I've added the optional argument `silent'
to `mm-charset-to-coding-system' so that it may not issue a warning
message when examining whether gbk is available.

Regards,



      reply	other threads:[~2008-12-15  4:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-10 10:03 Katsumi Yamaoka
2008-12-12 18:29 ` Reiner Steib
2008-12-15  4:16   ` Katsumi Yamaoka [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b4mzliym5tl.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).