From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 08 21:36:49 2017 Received: (at submit) by debbugs.gnu.org; 9 Feb 2017 02:36:49 +0000 Received: from localhost ([127.0.0.1]:60677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbebJ-0007f5-8X for submit@debbugs.gnu.org; Wed, 08 Feb 2017 21:36:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbebH-0007es-Nn for submit@debbugs.gnu.org; Wed, 08 Feb 2017 21:36:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbebB-0003HY-SV for submit@debbugs.gnu.org; Wed, 08 Feb 2017 21:36:42 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53813) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cbebB-0003HU-PU for submit@debbugs.gnu.org; Wed, 08 Feb 2017 21:36:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbebA-000570-J4 for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 21:36:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbeb6-0003HB-M6 for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 21:36:40 -0500 Received: from mail-hampton.hostforweb.net ([205.234.186.191]:55809 helo=hampton.hostforweb.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cbeb6-0003Ev-Hf for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 21:36:36 -0500 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1cbeaO-002dzG-Ny; Wed, 08 Feb 2017 20:35:53 -0600 Date: Thu, 09 Feb 2017 11:35:50 +0900 Message-ID: From: Katsumi Yamaoka To: bug-gnu-emacs@gnu.org Subject: 26.0.50; ELisp part in a mail isn't encoded properly 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.13 (Gnus v5.13) Emacs/26.0.50 (i686-pc-cygwin) Cancel-Lock: sha1:DNYLPVgPIFIZFyc+03sM3ZJ4ZcA= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.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-Get-Message-Sender-Via: hampton.hostforweb.net: authenticated_id: yamaoka/from_h X-Authenticated-Sender: hampton.hostforweb.net: yamaoka@jpl.org X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (barebone) [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi, In a message draft, an ELisp part containing non-ASCII letters, like the following, is not encoded properly. <#part type=3D"application/emacs-lisp" disposition=3Dinline> (defun mm-shr (handle) ... ;; Remove "soft hyphens". (goto-char (point-min)) (while (search-forward "=C2=AD" nil t) (replace-match "" t t)) <#/part> This doesn't happen with Emacs 25.1. Specifying the charset spec, as follows, doesn't help. <#part type=3D"application/emacs-lisp" disposition=3Dinline charset=3D"utf-= 8"> Please note that you may want to quote mml tags when replying. Thanks. In GNU Emacs 26.0.50.1 (i686-pc-cygwin, GTK+ Version 3.18.9) of 2017-02-08 built on localhost Windowing system distributor 'The Cygwin/X Project', version 11.0.11900000 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 09 12:57:05 2017 Received: (at control) by debbugs.gnu.org; 9 Feb 2017 17:57:05 +0000 Received: from localhost ([127.0.0.1]:33400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbsxt-0007YK-IG for submit@debbugs.gnu.org; Thu, 09 Feb 2017 12:57:05 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbsxs-0007Xc-Qr for control@debbugs.gnu.org; Thu, 09 Feb 2017 12:57:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbsxn-0002lX-4n for control@debbugs.gnu.org; Thu, 09 Feb 2017 12:56:59 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbsxn-0002lO-1B for control@debbugs.gnu.org; Thu, 09 Feb 2017 12:56:59 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cbsxm-0008Jc-Ln for control@debbugs.gnu.org; Thu, 09 Feb 2017 12:56:58 -0500 Subject: control message for bug 24655 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Thu, 09 Feb 2017 12:56:58 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) block 24655 by 25658 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 09 19:57:00 2017 Received: (at 25658) by debbugs.gnu.org; 10 Feb 2017 00:57:00 +0000 Received: from localhost ([127.0.0.1]:33611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbzWF-0007aX-RA for submit@debbugs.gnu.org; Thu, 09 Feb 2017 19:57:00 -0500 Received: from mail-hampton.hostforweb.net ([205.234.186.191]:52600 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbzWE-0007aI-Dl for 25658@debbugs.gnu.org; Thu, 09 Feb 2017 19:56:58 -0500 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1cbzW6-000ACz-Cr; Thu, 09 Feb 2017 18:56:51 -0600 Date: Fri, 10 Feb 2017 09:56:47 +0900 Message-ID: From: Katsumi Yamaoka To: 25658@debbugs.gnu.org Subject: Re: bug#25658: 26.0.50; ELisp part in a mail isn't encoded properly References: 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.13 (Gnus v5.13) Emacs/26.0.50 (i686-pc-cygwin) Cancel-Lock: sha1:d9dI9vqdfGwFtZ+M2FoaSyOryV4= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: authenticated_id: yamaoka/from_h X-Authenticated-Sender: hampton.hostforweb.net: yamaoka@jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 25658 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Thu, 09 Feb 2017 11:35:50 +0900, Katsumi Yamaoka wrote: > In a message draft, an ELisp part containing non-ASCII letters, > like the following, is not encoded properly. > <#part type=3D"application/emacs-lisp" disposition=3Dinline> > (defun mm-shr (handle) > ... > ;; Remove "soft hyphens". > (goto-char (point-min)) > (while (search-forward "=C2=AD" nil t) > (replace-match "" t t)) > <#/part> ;; Note that "=C2=AD" is a soft hyphen. What Gnus wants to do is: (quoted-printable-encode-string (encode-coding-string "=C2=AD" 'iso-8859-1)) =3D> "=3DAD" However what is actually done is: (with-temp-buffer ;; `mml-generate-mime-1' does: (set-buffer-multibyte t) (insert "=C2=AD") ;; `mm-encode-body' does: (encode-coding-region (point-min) (point-max) 'iso-8859-1) ;; `mm-encode-buffer' does: (quoted-printable-encode-region (point-min) (point-max)) (buffer-string)) =3D> "=3D3FFFAD" Hmm. (with-temp-buffer (set-buffer-multibyte t) (insert "=C2=AD") (encode-coding-region (point-min) (point-max) 'iso-8859-1) (append (buffer-string) nil)) =3D> (4194221) This would probably be the multibyte version of: (append (encode-coding-string "=C2=AD" 'iso-8859-1) nil) =3D> (173) Doesn't it mean we ought not to use `encode-coding-region'? Anyway, I think what we should do here would be one of the following two ways: (with-temp-buffer (set-buffer-multibyte t) (insert "=C2=AD") (encode-coding-region (point-min) (point-max) 'iso-8859-1) (set-buffer-multibyte nil) (quoted-printable-encode-region (point-min) (point-max)) (buffer-string)) =3D> "=3DAD" I'm not sure whether (set-buffer-multibyte nil) above does not do anything other than converting characters to the unibyte version one by one. OTOH, this is what I often do: (with-temp-buffer (set-buffer-multibyte t) (insert "=C2=AD") (insert (prog1 (encode-coding-string (buffer-string) 'iso-8859-1) (erase-buffer) (set-buffer-multibyte nil))) (quoted-printable-encode-region (point-min) (point-max)) (buffer-string)) =3D> "=3DAD" Regards, From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 10 02:51:39 2017 Received: (at 25658) by debbugs.gnu.org; 10 Feb 2017 07:51:40 +0000 Received: from localhost ([127.0.0.1]:33737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc5zX-0000RM-MG for submit@debbugs.gnu.org; Fri, 10 Feb 2017 02:51:39 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45321) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc5zV-0000RA-Ap for 25658@debbugs.gnu.org; Fri, 10 Feb 2017 02:51:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cc5zL-0006si-Ai for 25658@debbugs.gnu.org; Fri, 10 Feb 2017 02:51:32 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc5zL-0006sc-6g; Fri, 10 Feb 2017 02:51:27 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4497 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cc5zJ-0005xk-H1; Fri, 10 Feb 2017 02:51:26 -0500 Date: Fri, 10 Feb 2017 09:51:32 +0200 Message-Id: <83k28y4h6j.fsf@gnu.org> From: Eli Zaretskii To: Katsumi Yamaoka In-reply-to: (message from Katsumi Yamaoka on Fri, 10 Feb 2017 09:56:47 +0900) Subject: Re: bug#25658: 26.0.50; ELisp part in a mail isn't encoded properly References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25658 Cc: 25658@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Fri, 10 Feb 2017 09:56:47 +0900 > From: Katsumi Yamaoka > > On Thu, 09 Feb 2017 11:35:50 +0900, Katsumi Yamaoka wrote: > > In a message draft, an ELisp part containing non-ASCII letters, > > like the following, is not encoded properly. > > > <#part type="application/emacs-lisp" disposition=inline> > > (defun mm-shr (handle) > > ... > > ;; Remove "soft hyphens". > > (goto-char (point-min)) > > (while (search-forward "­" nil t) > > (replace-match "" t t)) > > <#/part> > > ;; Note that "­" is a soft hyphen. > > What Gnus wants to do is: > > (quoted-printable-encode-string > (encode-coding-string "­" 'iso-8859-1)) > => "=AD" Then why doesn't Gnus do exactly that? From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 10 12:34:16 2017 Received: (at 25658) by debbugs.gnu.org; 10 Feb 2017 17:34:16 +0000 Received: from localhost ([127.0.0.1]:34963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccF5M-0007YB-IX for submit@debbugs.gnu.org; Fri, 10 Feb 2017 12:34:16 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48237) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccF5L-0007Xw-8Q for 25658@debbugs.gnu.org; Fri, 10 Feb 2017 12:34:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccF5F-00031T-Gx for 25658@debbugs.gnu.org; Fri, 10 Feb 2017 12:34:10 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccF4Z-0002jC-DC; Fri, 10 Feb 2017 12:33:27 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ccF4Y-00027Y-Li; Fri, 10 Feb 2017 12:33:26 -0500 From: Glenn Morris To: Eli Zaretskii Subject: Re: bug#25658: 26.0.50; ELisp part in a mail isn't encoded properly References: <83k28y4h6j.fsf@gnu.org> X-Spook: Euskadi ta Askatasuna Crest Warning Firefly Homeland X-Ran: ;WQ+/*qL;8$Hfbl9KgZh($5/Ef>fNZ<"8XZ>L=B (Eli Zaretskii's message of "Fri, 10 Feb 2017 09:51:32 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25658 Cc: Katsumi Yamaoka , 25658@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Eli Zaretskii wrote: > Then why doesn't Gnus do exactly that? Could it be... a bug?! ;) From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 12 18:05:53 2017 Received: (at 25658) by debbugs.gnu.org; 12 Feb 2017 23:05:53 +0000 Received: from localhost ([127.0.0.1]:37525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cd3DN-0003QW-6y for submit@debbugs.gnu.org; Sun, 12 Feb 2017 18:05:53 -0500 Received: from mail-hampton.hostforweb.net ([205.234.186.191]:38720 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cd3DL-0003QH-Og for 25658@debbugs.gnu.org; Sun, 12 Feb 2017 18:05:52 -0500 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1cd3DE-000Igl-05; Sun, 12 Feb 2017 17:05:44 -0600 Date: Mon, 13 Feb 2017 08:05:41 +0900 Message-ID: From: Katsumi Yamaoka To: Glenn Morris Subject: Re: bug#25658: 26.0.50; ELisp part in a mail isn't encoded properly References: <83k28y4h6j.fsf@gnu.org> 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.13 (Gnus v5.13) Emacs/26.0.50 (i686-pc-cygwin) Cancel-Lock: sha1:cbUTfQ+FuNkqZ5DejhlFtAcCaII= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: authenticated_id: yamaoka/from_h X-Authenticated-Sender: hampton.hostforweb.net: yamaoka@jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 25658 Cc: Eli Zaretskii , 25658@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Fri, 10 Feb 2017 12:33:26 -0500, Glenn Morris wrote: > Eli Zaretskii wrote: >> Then why doesn't Gnus do exactly that? > Could it be... a bug?! ;) Ok. So, cd lisp/gnus egrep '\((decode|encode)-coding-region' *.el|wc -l => 10 are they all potentially bugs? From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 12 21:04:20 2017 Received: (at 25658) by debbugs.gnu.org; 13 Feb 2017 02:04:21 +0000 Received: from localhost ([127.0.0.1]:37593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cd604-0007Wx-Q2 for submit@debbugs.gnu.org; Sun, 12 Feb 2017 21:04:20 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39175) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cd603-0007Wl-91 for 25658@debbugs.gnu.org; Sun, 12 Feb 2017 21:04:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cd5zx-0004nr-Bt for 25658@debbugs.gnu.org; Sun, 12 Feb 2017 21:04:14 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cd5zH-0004f4-24; Sun, 12 Feb 2017 21:03:31 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cd5zF-0006wj-7N; Sun, 12 Feb 2017 21:03:29 -0500 From: Glenn Morris To: Katsumi Yamaoka Subject: Re: bug#25658: 26.0.50; ELisp part in a mail isn't encoded properly References: <83k28y4h6j.fsf@gnu.org> X-Spook: Authorities tempest IRA Hamas Looting U.S. Consulate X-Ran: [+58!j_jwZ!k?"OG$w1<|lgGZudU!NBB990,cw'q_)_!yqV|%.cMsz_&)J7;Eu]'nLQ2C2 X-Hue: brightblue X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sun, 12 Feb 2017 21:03:29 -0500 In-Reply-To: (Katsumi Yamaoka's message of "Mon, 13 Feb 2017 08:05:41 +0900") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25658 Cc: Eli Zaretskii , 25658@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Katsumi Yamaoka wrote: >>> Then why doesn't Gnus do exactly that? >> Could it be... a bug?! ;) > > Ok. So, > > cd lisp/gnus > egrep '\((decode|encode)-coding-region' *.el|wc -l > => 10 > > are they all potentially bugs? Don't ask me, I was only being flippant. :) From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 13 00:44:02 2017 Received: (at 25658) by debbugs.gnu.org; 13 Feb 2017 05:44:02 +0000 Received: from localhost ([127.0.0.1]:37708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cd9Qg-00045O-60 for submit@debbugs.gnu.org; Mon, 13 Feb 2017 00:44:02 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cd9Qf-000451-83 for 25658@debbugs.gnu.org; Mon, 13 Feb 2017 00:44:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cd9QX-0006A1-0W for 25658@debbugs.gnu.org; Mon, 13 Feb 2017 00:43:56 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54154) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cd9QW-00069x-TO; Mon, 13 Feb 2017 00:43:52 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4897 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cd9QV-0007Ya-Aw; Mon, 13 Feb 2017 00:43:51 -0500 Date: Mon, 13 Feb 2017 07:44:07 +0200 Message-Id: <83o9y61w7s.fsf@gnu.org> From: Eli Zaretskii To: Katsumi Yamaoka In-reply-to: (message from Katsumi Yamaoka on Mon, 13 Feb 2017 08:05:41 +0900) Subject: Re: bug#25658: 26.0.50; ELisp part in a mail isn't encoded properly References: <83k28y4h6j.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25658 Cc: rgm@gnu.org, 25658@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Mon, 13 Feb 2017 08:05:41 +0900 > From: Katsumi Yamaoka > Cc: Eli Zaretskii , 25658@debbugs.gnu.org > > On Fri, 10 Feb 2017 12:33:26 -0500, Glenn Morris wrote: > > Eli Zaretskii wrote: > >> Then why doesn't Gnus do exactly that? > > Could it be... a bug?! ;) > > Ok. So, > > cd lisp/gnus > egrep '\((decode|encode)-coding-region' *.el|wc -l > => 10 > > are they all potentially bugs? Not necessarily, they need to be reviewed one by one. My question was triggered by the fact that "what Gnus wants" was so much simpler and obviously correct that it was a clear winner IMO. If the other places are all of the same variety, then yes, I'd suggest to make similar replacements there as well. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 13 03:31:15 2017 Received: (at 25658) by debbugs.gnu.org; 13 Feb 2017 08:31:15 +0000 Received: from localhost ([127.0.0.1]:37792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdC2V-00088T-AY for submit@debbugs.gnu.org; Mon, 13 Feb 2017 03:31:15 -0500 Received: from mail-hampton.hostforweb.net ([205.234.186.191]:53867 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdC2U-00088B-GE for 25658@debbugs.gnu.org; Mon, 13 Feb 2017 03:31:14 -0500 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1cdC2M-001L3T-2N; Mon, 13 Feb 2017 02:31:07 -0600 Date: Mon, 13 Feb 2017 17:31:03 +0900 Message-ID: From: Katsumi Yamaoka To: Eli Zaretskii Subject: Re: bug#25658: 26.0.50; ELisp part in a mail isn't encoded properly References: <83k28y4h6j.fsf@gnu.org> <83o9y61w7s.fsf@gnu.org> 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.13 (Gnus v5.13) Emacs/26.0.50 (i686-pc-cygwin) Cancel-Lock: sha1:XDu3VIXUoX3gwfstxIsn7IYmUHU= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: authenticated_id: yamaoka/from_h X-Authenticated-Sender: hampton.hostforweb.net: yamaoka@jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 25658 Cc: rgm@gnu.org, 25658@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Mon, 13 Feb 2017 07:44:07 +0200, Eli Zaretskii wrote: >> cd lisp/gnus >> egrep '\((decode|encode)-coding-region' *.el|wc -l >> => 10 >> are they all potentially bugs? > Not necessarily, they need to be reviewed one by one. Ok. But I personally got to think *-coding-region should never be used anymore. > My question was triggered by the fact that "what Gnus wants" was so > much simpler and obviously correct that it was a clear winner IMO. If > the other places are all of the same variety, then yes, I'd suggest to > make similar replacements there as well. I see, however it's not so easy to simplify the codes so as to achieve just "what Gnus wants" perfectly (I mean using *-coding- string for all the cases). Instead, I've modified `mm-encode-body' for the emergency fix. In the Emacs master, only `mml-generate-mime-1' uses it. (`rfc2231-encode-string' uses it as well but now we use `rfc2047-encode-parameter' instead for encoding a file name.) Regards, From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 15 17:11:56 2017 Received: (at control) by debbugs.gnu.org; 15 Feb 2017 22:11:56 +0000 Received: from localhost ([127.0.0.1]:41421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ce7no-0003Ht-ES for submit@debbugs.gnu.org; Wed, 15 Feb 2017 17:11:56 -0500 Received: from mail-hampton.hostforweb.net ([205.234.186.191]:34411 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ce7nn-0003Hh-6v for control@debbugs.gnu.org; Wed, 15 Feb 2017 17:11:55 -0500 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1ce7nf-0024U0-Qg for control@debbugs.gnu.org; Wed, 15 Feb 2017 16:11:48 -0600 Date: Thu, 16 Feb 2017 07:11:47 +0900 Message-ID: From: Katsumi Yamaoka To: control@debbugs.gnu.org Subject: Re: bug#25658: 26.0.50; ELisp part in a mail isn't encoded properly References: <83k28y4h6j.fsf@gnu.org> <83o9y61w7s.fsf@gnu.org> Organization: Emacsen advocacy group User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (i686-pc-cygwin) Cancel-Lock: sha1:yyOs/UkXiALY/o3sso63p008r/w= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: authenticated_id: yamaoka/from_h X-Authenticated-Sender: hampton.hostforweb.net: yamaoka@jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) close 25658 quit From unknown Tue Jun 24 22:37:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 16 Mar 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator