From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#7626: mm-charset-override-alist Date: Sat, 05 Feb 2011 15:36:49 +0200 Message-ID: <8339o2a9hq.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1296914769 5631 80.91.229.12 (5 Feb 2011 14:06:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 5 Feb 2011 14:06:09 +0000 (UTC) Cc: 7626@debbugs.gnu.org To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 05 15:06:03 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 1Plim2-0002YH-KS for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Feb 2011 15:06:02 +0100 Original-Received: from localhost ([127.0.0.1]:43117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Plim1-0003kf-Pn for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Feb 2011 09:06:01 -0500 Original-Received: from [140.186.70.92] (port=53068 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Plilw-0003i0-EW for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2011 09:05:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Plilu-00024M-NB for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2011 09:05:56 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Plilu-000244-LS for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2011 09:05:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PliCD-0003NJ-SK; Sat, 05 Feb 2011 08:29:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Feb 2011 13:29: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.129691251212935 (code B ref 7626); Sat, 05 Feb 2011 13:29:01 +0000 Original-Received: (at 7626) by debbugs.gnu.org; 5 Feb 2011 13:28:32 +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 1PliBj-0003MZ-Sx for submit@debbugs.gnu.org; Sat, 05 Feb 2011 08:28:32 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PliBh-0003ML-Om for 7626@debbugs.gnu.org; Sat, 05 Feb 2011 08:28:30 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LG500100CD2ZN00@a-mtaout22.012.net.il> for 7626@debbugs.gnu.org; Sat, 05 Feb 2011 15:36:41 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.97.124]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LG5001HDCH3I5F0@a-mtaout22.012.net.il>; Sat, 05 Feb 2011 15:36:40 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 05 Feb 2011 08:29: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:43959 Archived-At: > From: Kenichi Handa > Cc: Reiner.Steib@gmx.de, 7626@debbugs.gnu.org > Date: Thu, 20 Jan 2011 11:05:42 +0900 > > > I don't want to modify rfc2047.el nor mm-util.el now. So, > > I've just installed a little bit inefficient workaround > > which does this: > > > 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. > > Have you tried it? I'm using it now, since it's part of the Emacs 23.2.93 pretest. In general, it seems to work well, but I found one message where it didn't DTRT. This message: 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.)