From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#21780: 25.0.50; Saving *Help* results in bad encoding because of curly quotes Date: Thu, 29 Oct 2015 10:58:24 -0700 (PDT) Message-ID: <536fdfb7-20dd-4d23-886c-8e842b6844fd@default> References: <> <<83oafh1sj1.fsf@gnu.org>> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1446141570 14712 80.91.229.3 (29 Oct 2015 17:59:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Oct 2015 17:59:30 +0000 (UTC) Cc: 21780-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 29 18:59:17 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 1ZrrTn-0006Um-Vt for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Oct 2015 18:59:16 +0100 Original-Received: from localhost ([::1]:45661 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrrTi-0003Mp-78 for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Oct 2015 13:59:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrrTe-0003Mh-Ms for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2015 13:59:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrrTa-0007c6-E1 for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2015 13:59:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrrTa-0007c2-Al for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2015 13:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZrrTZ-0005R3-VU for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2015 13:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Oct 2015 17:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21780 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21780-done@debbugs.gnu.org id=D21780.144614151420861 (code D ref 21780); Thu, 29 Oct 2015 17:59:01 +0000 Original-Received: (at 21780-done) by debbugs.gnu.org; 29 Oct 2015 17:58:34 +0000 Original-Received: from localhost ([127.0.0.1]:44530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrrT8-0005QO-4U for submit@debbugs.gnu.org; Thu, 29 Oct 2015 13:58:34 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:28746) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrrT5-0005QC-H5 for 21780-done@debbugs.gnu.org; Thu, 29 Oct 2015 13:58:32 -0400 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t9THwU1h022309 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 29 Oct 2015 17:58:30 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t9THwTel020936 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 29 Oct 2015 17:58:29 GMT Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t9THwPtE001448; Thu, 29 Oct 2015 17:58:25 GMT In-Reply-To: <<83oafh1sj1.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] 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:108152 Archived-At: > > emacs -Q > > M-x load-library isearch.el > > C-h f isearch-forward > > In buffer *Help*: C-x C-w foo.txt > > > > You get a coding-system warning. I tried saving it as utf-8 and as raw > > text. > > > > In both cases, when I open that file in a new Emacs session, I see octa= l > > escapes where there were curly quotes. >=20 > Thanks, I fixed the first part of this: Emacs should no longer ask > annoying questions when you save help buffers with curved quotes. >=20 > The second part, which happens when visiting the saved file, is not a > bug: you need to specify the encoding of files when visiting them in > locales whose default encoding is different. (Actually, I expect this > to work automatically for you, at least in "emacs -Q", but that > doesn't happen in every locale.) I guess I should interpret this as meaning that the bug is fixed (?). But I don't understand the second part. What do I need to change, as a user, to get this to work as I would expect? In Emacs, before saving, the buffer looks fine. When visiting the resulting file it does not look right - it is unreadable. There are 3 octal escapes for each opening curly quote and 3 of them for each closing curly quote. That can amount to quite a lot of noise. Do I need to save the buffer using some other encoding? If so, which? Emacs proposed two encodings (one of which was raw text, which I tried; and I tried also utf-8, which I would have thought would show curly quotes OK. I would think that Emacs would DTRT when opening the file, based on the encoding used to save it. Should users really need to do something special each time they visit the file? They've never had to do this before, for basic, common *Help* output. This still seems like a regression to me, as there is no such annoyance in Emacs 24.5 or prior. Then, Emacs did not use curly quotes for `describe-*' command output, and saved *Help* buffers were readable from the outset. If readers have to jump through hoops (e.g. changing "locales"), and there is no good fix for this regression in behavior, then I'd suggest that maybe `describe-*' commands should not use curly quotes. [Or could this perhaps be a font problem? Might the default font (e.g. on MS Windows) just need to be changed?]