From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25658: 26.0.50; ELisp part in a mail isn't encoded properly Date: Fri, 10 Feb 2017 09:51:32 +0200 Message-ID: <83k28y4h6j.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1486713132 1970 195.159.176.226 (10 Feb 2017 07:52:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2017 07:52:12 +0000 (UTC) Cc: 25658@debbugs.gnu.org To: Katsumi Yamaoka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 10 08:52:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc5zx-00007s-U9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Feb 2017 08:52:06 +0100 Original-Received: from localhost ([::1]:42391 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc603-0004jI-OO for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Feb 2017 02:52:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc5zy-0004ix-Tx for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 02:52:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cc5zu-0006z6-2f for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 02:52:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35538) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cc5zt-0006z2-VK for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 02:52:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cc5zt-0000S0-OK for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 02:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2017 07:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25658-submit@debbugs.gnu.org id=B25658.14867131001700 (code B ref 25658); Fri, 10 Feb 2017 07:52:01 +0000 Original-Received: (at 25658) by debbugs.gnu.org; 10 Feb 2017 07:51:40 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 In-reply-to: (message from Katsumi Yamaoka on Fri, 10 Feb 2017 09:56:47 +0900) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129182 Archived-At: > 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?