From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67210 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Bad header deconding in supersede Date: Tue, 05 Aug 2008 18:57:26 +0900 Organization: Emacsen advocacy group Message-ID: References: <86vdyf524k.fsf@nez-casse.depot.rail.eu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1217930338 4274 80.91.229.12 (5 Aug 2008 09:58:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Aug 2008 09:58:58 +0000 (UTC) Cc: bugs@gnus.org, ding@gnus.org To: Erwan David Original-X-From: ding-owner+M15666@lists.math.uh.edu Tue Aug 05 11:59:48 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1KQJKQ-0001WJ-Ss for ding-account@gmane.org; Tue, 05 Aug 2008 11:59:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1KQJJ1-0006bO-Uc; Tue, 05 Aug 2008 04:58:15 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1KQJJ0-0006bC-Lv for ding@lists.math.uh.edu; Tue, 05 Aug 2008 04:58:14 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1KQJIu-000250-7v for ding@lists.math.uh.edu; Tue, 05 Aug 2008 04:58:14 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1KQJIt-0000P1-00; Tue, 05 Aug 2008 11:58:07 +0200 Original-Received: from localhost ([127.0.0.1]:54156) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1KQJIK-0004d6-Fw; Tue, 05 Aug 2008 04:57:33 -0500 X-Hashcash: 1:20:080805:erwan@rail.eu.org::ELE3BOt9G3ANuz6J:000000000000000000000000000000000000000000003toz X-Hashcash: 1:20:080805:bugs@gnus.org::tCvrvhtPMeZ7AhjM:000020NB X-Hashcash: 1:20:080805:ding@gnus.org::D88dX8For/zzJI07:00005+Lc 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:xcwT/V0JdSHRkeGqGHvJ4Zhw21I= 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 - gnus.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-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67210 Archived-At: --=-=-= >>>>> Erwan David wrote: > No Gnus v0.11 > GNU Emacs 22.2.1 (x86_64-pc-freebsd, X toolkit, Xaw3d scroll bars) > of 2008-06-09 on nez-casse.depot.rail.eu.org > 200 news-3.free.fr (4-2) NNRP Service Ready - newsmaster@proxad.net (posting ok) > When I supersede an article, whose headers where sent in ISO-8859-1, they > are presented as is, thus as \351 since it is not a valid utf-8 > character. This leads to wrong encoding in superseded message header > when I do not catch this. > There is no problem in the body treatment, only headers. There's a similar problem in `gnus-summary-resend-message-edit' and the patch attached below seems to solve it. However I don't want to install it now because it has to be verified further and the next Emacs (containing Gnus v5.13, a.k.a. No Gnus) release is around the corner. So I'd add it to my TODO list instead. --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- gnus-msg.el~ 2008-06-11 21:40:58 +0000 +++ gnus-msg.el 2008-08-05 09:53:51 +0000 @@ -1283,6 +1283,7 @@ ;; Get a normal message buffer. (message-pop-to-buffer (message-buffer-name "Resend" to)) (insert-buffer-substring cur) + (article-decode-encoded-words) (mime-to-mml) (message-narrow-to-head-1) ;; Gnus will generate a new one when sending. --- message.el~ 2008-07-17 23:44:34 +0000 +++ message.el 2008-08-05 09:53:51 +0000 @@ -6838,6 +6838,7 @@ ;; Get a normal message buffer. (message-pop-to-buffer (message-buffer-name "supersede")) (insert-buffer-substring cur) + (article-decode-encoded-words) (mime-to-mml) (message-narrow-to-head-1) ;; Remove unwanted headers. --=-=-=--