From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#21471: 25.0.50; bug report with text from Info has spurious escape chars Date: Mon, 14 Sep 2015 09:38:29 -0700 Organization: UCLA Computer Science Department Message-ID: <55F6F805.8010506@cs.ucla.edu> References: <<55F5CBA0.90406@cs.ucla.edu>> <<065d972a-464a-4d55-9b67-29b3827caeb9@default>> <<83si6ha5dd.fsf@gnu.org>> <1b2518bd-4049-423f-a32e-85d5b3adc3f4@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070406060708050302070901" X-Trace: ger.gmane.org 1442249970 17448 80.91.229.3 (14 Sep 2015 16:59:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Sep 2015 16:59:30 +0000 (UTC) Cc: 21471-done@debbugs.gnu.org To: Drew Adams , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 14 18:59:20 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZbX66-0003AB-TJ for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Sep 2015 18:59:19 +0200 Original-Received: from localhost ([::1]:42262 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbX66-0007Yu-AH for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Sep 2015 12:59:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbWma-0005ld-4l for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2015 12:39:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbWmV-0007MD-1K for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2015 12:39:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbWmU-0007M8-VM for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2015 12:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZbWmU-0004d7-Q0 for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2015 12:39:02 -0400 Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Sep 2015 16:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 21471 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 21471@debbugs.gnu.org, eggert@cs.ucla.edu, drew.adams@oracle.com Original-Received: via spool by 21471-done@debbugs.gnu.org id=D21471.144224871917766 (code D ref 21471); Mon, 14 Sep 2015 16:39:02 +0000 Original-Received: (at 21471-done) by debbugs.gnu.org; 14 Sep 2015 16:38:39 +0000 Original-Received: from localhost ([127.0.0.1]:60488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZbWm6-0004cT-Hf for submit@debbugs.gnu.org; Mon, 14 Sep 2015 12:38:39 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:41478) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZbWm3-0004cK-18 for 21471-done@debbugs.gnu.org; Mon, 14 Sep 2015 12:38:36 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id F0F2A1605E1; Mon, 14 Sep 2015 09:38:33 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id xnVyo-XaGfS1; Mon, 14 Sep 2015 09:38:33 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 077F81605E7; Mon, 14 Sep 2015 09:38:33 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id NiTibYKU021c; Mon, 14 Sep 2015 09:38:32 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id D6E771605E1; Mon, 14 Sep 2015 09:38:32 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 In-Reply-To: <1b2518bd-4049-423f-a32e-85d5b3adc3f4@default> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:106542 Archived-At: This is a multi-part message in MIME format. --------------070406060708050302070901 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit It is a longstanding double-encoding bug in mailclient-encode-string-as-url, and I installed the attached attempt to fix it. Please give this a try. I am boldly marking the bug as fixed. I expect our more-extensive use of curved quotes to shake out other bugs like this in Emacs, and it is a good thing to fix them. --------------070406060708050302070901 Content-Type: text/plain; charset=UTF-8; name="0001-Don-t-double-encode-non-ASCII-for-mail-client.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0001-Don-t-double-encode-non-ASCII-for-mail-client.patch" RnJvbSBkNzZkOGFhNDYwOTI3OTI0YWIzNWIxMTljNDliZTA5ZjhhYTg0ZGQzIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBNb24sIDE0IFNlcCAyMDE1IDA5OjMxOjIzIC0wNzAwClN1YmplY3Q6IFtQQVRD SF0gPT9VVEYtOD9xP0Rvbj1FMj04MD05OXQ9MjBkb3VibGUtZW5jb2RlPTIwbm9uLUFTQ0lJ PTIwZm9yPz0KID0/VVRGLTg/cT89MjBtYWlsPTIwY2xpZW50Pz0KTUlNRS1WZXJzaW9uOiAx LjAKQ29udGVudC1UeXBlOiB0ZXh0L3BsYWluOyBjaGFyc2V0PVVURi04CkNvbnRlbnQtVHJh bnNmZXItRW5jb2Rpbmc6IDhiaXQKCiogbGlzcC9tYWlsL21haWxjbGllbnQuZWwgKG1haWxj bGllbnQtZW5jb2RlLXN0cmluZy1hcy11cmwpOgpVc2UgUkZDIDYwNjjigJlzIGxpc3Qgb2Yg dW5yZXNlcnZlZCBjaGFyYWN0ZXJzLgoobWFpbGNsaWVudC1zZW5kLWl0KTogV2hlbiBlbmNv ZGluZyB0aGUgYm9keSBhcyBhIFVSTCwKZmlyc3QgZGVjb2RlIGl0IGFzIHBlciBDb250ZW50 LVR5cGU6IGFuZCBDb250ZW50LVRyYW5zZmVyLUVuY29kaW5nOiwKYXMgVVJMcyBtdXN0IHVz ZSBwZXJjZW50LWVuY29kZWQgVVRGLTggKEJ1ZyMyMTQ3MSkuCgoqIGRvYy9taXNjL3VybC50 ZXhpIChtYWlsdG8pOiBVcGRhdGUgUkZDIG51bWJlci4KLS0tCiBkb2MvbWlzYy91cmwudGV4 aSAgICAgICB8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9uIChwb2lu dC1taW4pIChwb2ludC1tYXgpCisJCQkJCQkgICAgICAgbmlsIG5pbCAndW5pYnl0ZSkpCisJ CSAgICAgICAoKHN0cmluZz0gY2hhcmFjdGVyLWNvZGluZyAiYmFzZTY0IikKKwkJCShiYXNl NjQtZGVjb2RlLXJlZ2lvbiAocG9pbnQtbWluKSAocG9pbnQtbWF4KSkpCisJCSAgICAgICAo dCAoZXJyb3IgInVuc3VwcG9ydGVkIENvbnRlbnQtVHJhbnNmZXItRW5jb2Rpbmc6ICVzIgor CQkJCSBjaGFyYWN0ZXItY29kaW5nKSkpCisJCSAgICAgIChkZWNvZGUtY29kaW5nLXJlZ2lv biAocG9pbnQtbWluKSAocG9pbnQtbWF4KQorCQkJCQkgICAgY29kaW5nLXN5c3RlbSB0KSkp KSkpKSkpKSkpKQogCiAocHJvdmlkZSAnbWFpbGNsaWVudCkKIAotLSAKMi4xLjQKCg== --------------070406060708050302070901--