From unknown Thu Aug 14 18:37:52 2025 X-Loop: don@donarmstrong.com Subject: bug#935: 23.0.60; gnus-mime-view-part-as-charset displays non-ASCII characters as octals Reply-To: Sven Joachim , 935@debbugs.gnu.org Resent-From: Sven Joachim Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: ding@gnus.org, Emacs Bugs Resent-Date: Mon, 08 Sep 2008 21:00:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 935 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122090727930439 (code B ref -1); Mon, 08 Sep 2008 21:00:02 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.7 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED,X_DEBBUGS_CC autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 8 Sep 2008 20:54:39 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m88KsYg8030433 for ; Mon, 8 Sep 2008 13:54:35 -0700 Received: from mail.gnu.org ([199.232.76.166]:40632 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Kcnj7-0002nc-9v for emacs-pretest-bug@gnu.org; Mon, 08 Sep 2008 16:52:49 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kcnki-0000gT-NR for emacs-pretest-bug@gnu.org; Mon, 08 Sep 2008 16:54:33 -0400 Received: from mail.gmx.net ([213.165.64.20]:37682) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Kcnkh-0000g5-WF for emacs-pretest-bug@gnu.org; Mon, 08 Sep 2008 16:54:28 -0400 Received: (qmail invoked by alias); 08 Sep 2008 20:54:25 -0000 Received: from p54864D5B.dip.t-dialin.net (EHLO debian) [84.134.77.91] by mail.gmx.net (mp018) with SMTP; 08 Sep 2008 22:54:25 +0200 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX1+tBjthlGmtfiMvgp6RSylC4IqBgsGAoP92VHNqR8 3TcqsRhssw+8Of From: Sven Joachim To: emacs-pretest-bug@gnu.org Date: Mon, 08 Sep 2008 22:54:18 +0200 Message-ID: <877i9mmk91.fsf@gmx.de> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.47 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) I have a problem with the gnus-mime-view-part-as-charset command that only shows up in Emacs 23, not sure whether this is a bug in Emacs or in Gnus. If an article has attachment with a wrongly specified charset, Gnus can work around that with the gnus-mime-view-part-as-charset command. For instance, on gmane.linux.debian.internationalization.german aka debian-l10n-german@lists.debian.org is such an article, it has an attachment that is incorrectly described as "Content-Type: text/x-diff; charset=utf-8" while it's actually encoded as iso-latin-1. Now when I press C RET iso-latin-1, Emacs displays the German umlauts as octal sequences. In Emacs 22.3, they are displayed correctly (Gnus version is the same, current No Gnus CVS). In GNU Emacs 23.0.60.4 (i686-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-09-08 on debian Windowing system distributor `The X.Org Foundation', version 11.0.10402000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Summary Minor modes in effect: diff-auto-refine-mode: t gnus-mailing-list-mode: t display-time-mode: t auto-image-file-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x r b . e m C-e C-x C-e M-x g n u s L 2 SPC SPC C-x o C i s o l 1 C-h k C C-x o C-SPC M-f M-f M-f M-f M-f M-f M-w q C-x 1 SPC M-x r e p o r t - e m Recent messages: Fetching headers for gmane.linux.debian.internationalization.german...done Scoring...done Generating summary...done No more unread articles Type C-x 4 o RET to restore the other window, C-M-v to scroll help. mouse-2, RET: find function's definition Note: file is write protected Mark set Buffer is read-only: # Commands: d, s, x, u; f, o, 1, 2, m, v; ~, %; q to quit; ? for help. From unknown Thu Aug 14 18:37:52 2025 X-Loop: don@donarmstrong.com Subject: bug#935: 23.0.60; gnus-mime-view-part-as-charset displays non-ASCII characters as octals Reply-To: Katsumi Yamaoka , 935@debbugs.gnu.org Resent-From: Katsumi Yamaoka Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 09 Sep 2008 01:10:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 935 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122092204420480 (code B ref -1); Tue, 09 Sep 2008 01:10:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.9 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 9 Sep 2008 01:00:44 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8910eWk020370 for ; Mon, 8 Sep 2008 18:00:41 -0700 Received: from mx10.gnu.org ([199.232.76.166]:59467) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KcrZG-0003ym-Nt for emacs-pretest-bug@gnu.org; Mon, 08 Sep 2008 20:58:54 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kcrau-0006wP-Tw for emacs-pretest-bug@gnu.org; Mon, 08 Sep 2008 21:00:39 -0400 Received: from orlando.hostforweb.net ([216.246.45.90]:56241) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kcrau-0006vo-Eh for emacs-pretest-bug@gnu.org; Mon, 08 Sep 2008 21:00:36 -0400 Received: from localhost ([127.0.0.1]:40153) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1Kcran-0000HC-RT; Mon, 08 Sep 2008 20:00:30 -0500 Date: Tue, 09 Sep 2008 10:00:15 +0900 Message-ID: From: Katsumi Yamaoka To: Sven Joachim Cc: 935@debbugs.gnu.org, emacs-pretest-bug@gnu.org, ding@gnus.org References: <877i9mmk91.fsf@gmx.de> X-Hashcash: 1:20:080909:svenjoac@gmx.de::SFOTz83QVWZefAxQ:000Dib X-Hashcash: 1:20:080909:935@debbugs.gnu.org::l+6BgiUulsxrqH3e:00000000000000000000000000000005uV1 X-Hashcash: 1:20:080909:emacs-pretest-bug@gnu.org::67sTP6TNLQAGwDoz:0000000000000000000000000000000000003j3n X-Hashcash: 1:20:080909:ding@gnus.org::6WJDm/g1BIhlbjh7:00000zQt Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:Qs/fQ3xLnCcFfhfcvQAyXEN1ZOQ= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-CrossAssassin-Score: 2 --=-=-= >>>>> Sven Joachim wrote: > I have a problem with the gnus-mime-view-part-as-charset command that > only shows up in Emacs 23, not sure whether this is a bug in Emacs or in > Gnus. > If an article has attachment with a wrongly specified charset, Gnus can > work around that with the gnus-mime-view-part-as-charset command. For > instance, on > gmane.linux.debian.internationalization.german aka > debian-l10n-german@lists.debian.org is such an article, it has an > attachment that is incorrectly described as "Content-Type: text/x-diff; > charset=utf-8" while it's actually encoded as iso-latin-1. Now when I > press C RET iso-latin-1, Emacs displays the German umlauts as octal > sequences. In Emacs 22.3, they are displayed correctly (Gnus version is > the same, current No Gnus CVS). That's exactly a bug. Even in Emacs 22.3, it is not displayed correctly if attachment contains CJK characters with wrong charset. The patch is below. I'll commit this after testing it further. --=-=-= Content-Type: text/x-diff Content-Disposition: inline --- gnus-art.el~ 2008-08-11 22:24:20 +0000 +++ gnus-art.el 2008-09-09 00:56:42 +0000 @@ -5138,8 +5138,9 @@ (mm-string-to-multibyte contents))) (goto-char b))))) -(defun gnus-mime-strip-charset-parameters (handle) - "Strip charset parameters from HANDLE." +(defun gnus-mime-set-charset-parameters (handle) + "Set charset to parameters in HANDLE. +The value of `gnus-newsgroup-charset' is used as a charset." (if (stringp (car handle)) (mapc #'gnus-mime-strip-charset-parameters (cdr handle)) (let* ((type (mm-handle-type (if (equal (mm-handle-media-type handle) @@ -5150,8 +5151,10 @@ (mm-handle-cache handle)) handle))) (charset (assq 'charset (cdr type)))) - (when charset - (delq charset type))))) + (if charset + (setcdr charset gnus-newsgroup-charset) + (setcdr type (cons (cons 'charset gnus-newsgroup-charset) + (cdr type))))))) (defun gnus-mime-view-part-as-charset (&optional handle arg) "Insert the MIME part under point into the current buffer using the @@ -5172,7 +5175,7 @@ (mm-read-coding-system "Charset: ")))) (if (mm-handle-undisplayer handle) (mm-remove-part handle))) - (gnus-mime-strip-charset-parameters handle) + (gnus-mime-set-charset-parameters handle) (when (and (consp (setq form (cdr-safe fun))) (setq form (ignore-errors (assq 'gnus-mime-display-alternative form))) --=-=-=-- From unknown Thu Aug 14 18:37:52 2025 X-Loop: don@donarmstrong.com Subject: bug#935: 23.0.60; gnus-mime-view-part-as-charset displays non-ASCII characters as octals Reply-To: Katsumi Yamaoka , 935@debbugs.gnu.org Resent-From: Katsumi Yamaoka Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 09 Sep 2008 06:30:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 935 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12209414493685 (code B ref -1); Tue, 09 Sep 2008 06:30:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-9.6 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 9 Sep 2008 06:24:08 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m896O50J003674 for ; Mon, 8 Sep 2008 23:24:06 -0700 Received: from mx10.gnu.org ([199.232.76.166]:55848) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KcwcF-00067c-Q7 for emacs-pretest-bug@gnu.org; Tue, 09 Sep 2008 02:22:19 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kcwdt-0001ea-Qt for emacs-pretest-bug@gnu.org; Tue, 09 Sep 2008 02:24:04 -0400 Received: from mx20.gnu.org ([199.232.41.8]:40096) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kcwdt-0001eQ-79 for emacs-pretest-bug@gnu.org; Tue, 09 Sep 2008 02:24:01 -0400 Received: from orlando.hostforweb.net ([216.246.45.90]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kcwds-0001o1-Fm for emacs-pretest-bug@gnu.org; Tue, 09 Sep 2008 02:24:00 -0400 Received: from localhost ([127.0.0.1]:56306) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1Kcwdm-0005lj-0Z; Tue, 09 Sep 2008 01:23:54 -0500 Date: Tue, 09 Sep 2008 15:23:44 +0900 Message-ID: From: Katsumi Yamaoka To: Sven Joachim Cc: 935@debbugs.gnu.org, emacs-pretest-bug@gnu.org, ding@gnus.org References: <877i9mmk91.fsf@gmx.de> X-Hashcash: 1:20:080909:svenjoac@gmx.de::w3MZBkVN1e4LZQiI:0070zU X-Hashcash: 1:20:080909:935@debbugs.gnu.org::8mD1NfEQuR94iJWD:00000000000000000000000000000009N7T X-Hashcash: 1:20:080909:emacs-pretest-bug@gnu.org::dJSlu/rYNvtdEeHP:0000000000000000000000000000000000002Tag X-Hashcash: 1:20:080909:ding@gnus.org::2vaccL224aWL5QX/:00005MaN Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:8/azg0YTDfOuzh4jvEpbU3GK29A= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-detected-kernel: by mx20.gnu.org: Genre and OS details not recognized. X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-CrossAssassin-Score: 2 >>>>> Katsumi Yamaoka wrote: > The patch is below. I'll commit this after testing it further. > --- gnus-art.el~ 2008-08-11 22:24:20 +0000 > +++ gnus-art.el 2008-09-09 00:56:42 +0000 I've committed it in the Emacs trunk, with a slight modification. From unknown Thu Aug 14 18:37:52 2025 X-Loop: don@donarmstrong.com Subject: bug#935: 23.0.60; gnus-mime-view-part-as-charset displays non-ASCII characters as octals Reply-To: Daiki Ueno , 935@debbugs.gnu.org Resent-From: Daiki Ueno Original-Sender: Daiki Ueno Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: emacs-pretest-bug@gnu.org, Emacs Bugs Resent-Date: Tue, 09 Sep 2008 11:55:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 935 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 935-submit@emacsbugs.donarmstrong.com id=B935.122096077620028 (code B ref 935); Tue, 09 Sep 2008 11:55:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.5 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER, IMPRONONCABLE_2,MONEY,X_DEBBUGS_CC autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 935) by emacsbugs.donarmstrong.com; 9 Sep 2008 11:46:16 +0000 Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m89Bk9FC020021 for <935@emacsbugs.donarmstrong.com>; Tue, 9 Sep 2008 04:46:10 -0700 Received: by yx-out-2324.google.com with SMTP id 8so1248890yxg.31 for <935@emacsbugs.donarmstrong.com>; Tue, 09 Sep 2008 04:46:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :x-debbugs-cc:date:in-reply-to:message-id:user-agent:mime-version :content-type:sender; bh=dpQ0RUlgzV9pYv9YYO6QeIoJfCTQwGCfahJMpfneuow=; b=wJ/HxarxP3GNhnOsju7HeS0Z6kTwjU4k4oszKQJ6WmBhIvIl1XxqcyeLRdgYCt2Rx9 bRk0DLC7Zm7bySsFeBRljg3nfowggoxTgoXA2BN+oC7VKbKX3Ym/K6emFBNJevEElPY+ F7XIGIIAvw6k/kqvU7dtliw6o7o+wqUWpbCNI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:x-debbugs-cc:date:in-reply-to :message-id:user-agent:mime-version:content-type:sender; b=xcfhCNQuVpKLK9wwJQSGVlyQGB4IntdFBgh7AVNtrZYwDemkv4XqFL4CcPvTNn+HfC uMPhJkJz0pyReaeVyWsQnBjTEf1h55ENqU/EDnN9gor9+gI3LgCCpYDjD/RgPSeX3fT+ 6vjsB6qPTlqHwW75K6HBnwYgdSD6CM6SulQeA= Received: by 10.150.147.9 with SMTP id u9mr23296728ybd.126.1220960768964; Tue, 09 Sep 2008 04:46:08 -0700 (PDT) Received: from chilled ( [221.255.76.222]) by mx.google.com with ESMTPS id 30sm7595778yxk.4.2008.09.09.04.46.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 09 Sep 2008 04:46:07 -0700 (PDT) From: Daiki Ueno To: Katsumi Yamaoka Cc: 935@debbugs.gnu.org, Sven Joachim , ding@gnus.org References: <877i9mmk91.fsf@gmx.de> Date: Tue, 09 Sep 2008 20:46:03 +0900 In-Reply-To: (Katsumi Yamaoka's message of "Tue, 09 Sep 2008 10:00:15 +0900") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Daiki Ueno >>>>> In >>>>> Katsumi Yamaoka wrote: > -(defun gnus-mime-strip-charset-parameters (handle) > - "Strip charset parameters from HANDLE." > +(defun gnus-mime-set-charset-parameters (handle) > + "Set charset to parameters in HANDLE. > +The value of `gnus-newsgroup-charset' is used as a charset." > (if (stringp (car handle)) > (mapc #'gnus-mime-strip-charset-parameters (cdr handle)) Should this line also be changed to call gnus-mime-set-charset-parameters? I would also like to suggest that gnus-mime-set-charset-parameters accept CHARSET as its 2nd arg to avoid dependency to the global variable gnus-newsgroup-charset. Regards, -- Daiki Ueno From unknown Thu Aug 14 18:37:52 2025 X-Loop: don@donarmstrong.com Subject: bug#935: 23.0.60; gnus-mime-view-part-as-charset displays non-ASCII characters as octals Reply-To: Katsumi Yamaoka , 935@debbugs.gnu.org Resent-From: Katsumi Yamaoka Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 09 Sep 2008 22:55:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 935 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 935-submit@emacsbugs.donarmstrong.com id=B935.122100054826306 (code B ref 935); Tue, 09 Sep 2008 22:55:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 935) by emacsbugs.donarmstrong.com; 9 Sep 2008 22:49:08 +0000 Received: from orlando.hostforweb.net (orlando.hostforweb.net [216.246.45.90]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m89Mn431026199 for <935@emacsbugs.donarmstrong.com>; Tue, 9 Sep 2008 15:49:05 -0700 Received: from localhost ([127.0.0.1]:45863) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1KdC10-00060A-4p; Tue, 09 Sep 2008 17:48:54 -0500 Date: Wed, 10 Sep 2008 07:48:46 +0900 Message-ID: From: Katsumi Yamaoka To: Daiki Ueno Cc: 935@debbugs.gnu.org, Sven Joachim , ding@gnus.org References: <877i9mmk91.fsf@gmx.de> X-Hashcash: 1:20:080909:ueno@unixuser.org::G5ff0j+OMXAPu81/:000000000000000000000000000000000000000000005NfT X-Hashcash: 1:20:080909:935@emacsbugs.donarmstrong.com::NFtzGKAdA16oAIJK:00000000000000000000000000000001NvC X-Hashcash: 1:20:080909:svenjoac@gmx.de::7fR94+Gdhb3x5wmL:001JHv X-Hashcash: 1:20:080909:ding@gnus.org::de1Vrym2YG3XrTJq:000060a3 Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:F2FKXqYU1XrcsDk2uPipOazcvHw= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - emacsbugs.donarmstrong.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: >>>>> Daiki Ueno wrote: >> +(defun gnus-mime-set-charset-parameters (handle) >> + "Set charset to parameters in HANDLE. >> +The value of `gnus-newsgroup-charset' is used as a charset." >> (if (stringp (car handle)) >> (mapc #'gnus-mime-strip-charset-parameters (cdr handle)) > Should this line also be changed to call > gnus-mime-set-charset-parameters? Oops. Thank you for pointing it out. > I would also like to suggest that gnus-mime-set-charset-parameters > accept CHARSET as its 2nd arg to avoid dependency to the global variable > gnus-newsgroup-charset. That's a good idea. I also verified that to bind `gnus-newsgroup-charset' is not necessary in the function `gnus-mime-view-part-as-charset'. Installed in the Emacs trunk. Regards, From unknown Thu Aug 14 18:37:52 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Sven Joachim Subject: bug#935 closed by Sven Joachim (Re: bug#935: 23.0.60; gnus-mime-view-part-as-charset displays non-ASCII characters as octals) Message-ID: References: <87k5den06x.fsf@gmx.de> <877i9mmk91.fsf@gmx.de> X-Emacs-PR-Message: they-closed 935 X-Emacs-PR-Package: emacs Reply-To: 935@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1221411306-12163-1" This is a multi-part message in MIME format... ------------=_1221411306-12163-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #935: 23.0.60; gnus-mime-view-part-as-charset displays non-ASCII characters= as octals It has been closed by Sven Joachim . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Sven Joachim by replying to this email. --=20 935: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D935 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1221411306-12163-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From svenjoac@gmx.de Sun Sep 14 09:48:24 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.9 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 935-done) by emacsbugs.donarmstrong.com; 14 Sep 2008 16:48:24 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8EGmKXm010135 for <935-done@emacsbugs.donarmstrong.com>; Sun, 14 Sep 2008 09:48:22 -0700 Received: (qmail invoked by alias); 14 Sep 2008 16:48:14 -0000 Received: from p54867391.dip.t-dialin.net (EHLO debian) [84.134.115.145] by mail.gmx.net (mp017) with SMTP; 14 Sep 2008 18:48:14 +0200 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX19xWQg1BedxQZ9RyV4hsmstohP0wng12nqYBAPy/V 2ecHZBVftHEeZU From: Sven Joachim To: Katsumi Yamaoka Cc: Daiki Ueno , 935-done@debbugs.gnu.org, ding@gnus.org Subject: Re: bug#935: 23.0.60; gnus-mime-view-part-as-charset displays non-ASCII characters as octals References: <877i9mmk91.fsf@gmx.de> Mail-Followup-To: Sven Joachim , Katsumi Yamaoka , Daiki Ueno , 935@debbugs.gnu.org, ding@gnus.org Date: Sun, 14 Sep 2008 18:48:06 +0200 In-Reply-To: (Katsumi Yamaoka's message of "Wed, 10 Sep 2008 07:48:46 +0900") Message-ID: <87k5den06x.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.83 Sorry for not following up earlier, I can confirm that the problem is fixed, hence I'm closing the bug now. Thank you, Sven ------------=_1221411306-12163-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From svenjoac@gmx.de Mon Sep 8 13:54:38 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.7 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED,X_DEBBUGS_CC autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 8 Sep 2008 20:54:39 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m88KsYg8030433 for ; Mon, 8 Sep 2008 13:54:35 -0700 Received: from mail.gnu.org ([199.232.76.166]:40632 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Kcnj7-0002nc-9v for emacs-pretest-bug@gnu.org; Mon, 08 Sep 2008 16:52:49 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kcnki-0000gT-NR for emacs-pretest-bug@gnu.org; Mon, 08 Sep 2008 16:54:33 -0400 Received: from mail.gmx.net ([213.165.64.20]:37682) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Kcnkh-0000g5-WF for emacs-pretest-bug@gnu.org; Mon, 08 Sep 2008 16:54:28 -0400 Received: (qmail invoked by alias); 08 Sep 2008 20:54:25 -0000 Received: from p54864D5B.dip.t-dialin.net (EHLO debian) [84.134.77.91] by mail.gmx.net (mp018) with SMTP; 08 Sep 2008 22:54:25 +0200 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX1+tBjthlGmtfiMvgp6RSylC4IqBgsGAoP92VHNqR8 3TcqsRhssw+8Of From: Sven Joachim To: emacs-pretest-bug@gnu.org Subject: 23.0.60; gnus-mime-view-part-as-charset displays non-ASCII characters as octals X-Debbugs-CC: ding@gnus.org Date: Mon, 08 Sep 2008 22:54:18 +0200 Message-ID: <877i9mmk91.fsf@gmx.de> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.47 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) I have a problem with the gnus-mime-view-part-as-charset command that only shows up in Emacs 23, not sure whether this is a bug in Emacs or in Gnus. If an article has attachment with a wrongly specified charset, Gnus can work around that with the gnus-mime-view-part-as-charset command. For instance, on gmane.linux.debian.internationalization.german aka debian-l10n-german@lists.debian.org is such an article, it has an attachment that is incorrectly described as "Content-Type: text/x-diff; charset=utf-8" while it's actually encoded as iso-latin-1. Now when I press C RET iso-latin-1, Emacs displays the German umlauts as octal sequences. In Emacs 22.3, they are displayed correctly (Gnus version is the same, current No Gnus CVS). In GNU Emacs 23.0.60.4 (i686-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-09-08 on debian Windowing system distributor `The X.Org Foundation', version 11.0.10402000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Summary Minor modes in effect: diff-auto-refine-mode: t gnus-mailing-list-mode: t display-time-mode: t auto-image-file-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x r b . e m C-e C-x C-e M-x g n u s L 2 SPC SPC C-x o C i s o l 1 C-h k C C-x o C-SPC M-f M-f M-f M-f M-f M-f M-w q C-x 1 SPC M-x r e p o r t - e m Recent messages: Fetching headers for gmane.linux.debian.internationalization.german...done Scoring...done Generating summary...done No more unread articles Type C-x 4 o RET to restore the other window, C-M-v to scroll help. mouse-2, RET: find function's definition Note: file is write protected Mark set Buffer is read-only: # Commands: d, s, x, u; f, o, 1, 2, m, v; ~, %; q to quit; ? for help. ------------=_1221411306-12163-1--