From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#7626: mm-charset-override-alist Date: Mon, 07 Feb 2011 14:36:16 +0900 Message-ID: References: <83vd28q46b.fsf@gnu.org> <83oc7tkv4x.fsf@gnu.org> <83ipxuie35.fsf@gnu.org> <87pqrubpod.fsf_-_@marauder.physik.uni-ulm.de> <87lj2ga8pg.fsf@marauder.physik.uni-ulm.de> <8339o2a9hq.fsf@gnu.org> <8339o0ts6k.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297058787 11528 80.91.229.12 (7 Feb 2011 06:06:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Feb 2011 06:06:27 +0000 (UTC) To: 7626@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 07 07:06:20 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PmKEp-0005e2-44 for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Feb 2011 07:06:15 +0100 Original-Received: from localhost ([127.0.0.1]:34624 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmKEo-0002lW-4A for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Feb 2011 01:06:14 -0500 Original-Received: from [140.186.70.92] (port=53388 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmKEc-0002kL-UX for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2011 01:06:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PmKEa-0001TY-V1 for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2011 01:06:02 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PmKEa-0001TU-ST for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2011 01:06:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PmJdp-0001VJ-PW; Mon, 07 Feb 2011 00:28:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Kenichi Handa Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Feb 2011 05:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7626-submit@debbugs.gnu.org id=B7626.12970564645759 (code B ref 7626); Mon, 07 Feb 2011 05:28:01 +0000 Original-Received: (at 7626) by debbugs.gnu.org; 7 Feb 2011 05:27:44 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PmJdY-0001Uq-0f for submit@debbugs.gnu.org; Mon, 07 Feb 2011 00:27:44 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PmJdV-0001Ub-6T for 7626@debbugs.gnu.org; Mon, 07 Feb 2011 00:27:42 -0500 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id p175aGh9006755 for <7626@debbugs.gnu.org>; Mon, 7 Feb 2011 14:36:16 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id p175aGVh011882 for <7626@debbugs.gnu.org>; Mon, 7 Feb 2011 14:36:16 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id p175aGQc009692 for <7626@debbugs.gnu.org>; Mon, 7 Feb 2011 14:36:16 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.71) (envelope-from ) id 1PmJlo-0004NS-Af for 7626@debbugs.gnu.org; Mon, 07 Feb 2011 14:36:16 +0900 In-Reply-To: <8339o0ts6k.fsf@gnu.org> (message from Eli Zaretskii on Mon, 07 Feb 2011 05:54:59 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 07 Feb 2011 00:28:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43976 Archived-At: In article <8339o0ts6k.fsf@gnu.org>, Eli Zaretskii writes: > > > http://lists.gnu.org/archive/html/savannah-users/2011-02/msg00003.html > > > > > is shown with buffer-file-coding-system `us-ascii', whereas I would > > > expect it to be UTF-8, because the From: header is in UTF-8. > > > > > (I saved the raw message as it was found in my mailbox, in case you'd > > > need it for analysis.) > > > > Thank you. Please send it it me. > Attached. Thank you. In that mail, the first part of body explicitly specifies this: Content-Type: text/plain; charset=US-ASCII So, according to this algorithm: > > After decoding each header, if rmail-mime-coding-system is > > nil, set it to a cons (CODING-SYSTEM . nil). > > > After decoding each body, if rmail-mime-coding-system is nil > > or a cons, set it to CODING-SYSTEM. > > > After decoding a whole message, if rmail-mime-coding-system > > is a cons (i.e. only a header part is decoded), re-decode > > the header while binding mm-charset-override-alist to nil, > > and set rmail-mime-coding-system to last-coding-system-used. > > > Set buffer-file-coding-system to rmail-mime-coding-system. the coding system is decided as us-ascii (the second step above overrides a coding system from header). --- Kenichi Handa handa@m17n.org