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: Fri, 30 Oct 2015 08:07:54 -0700 (PDT) Message-ID: <17cf8a49-1cc4-4834-91ec-b7d092693ebf@default> References: <<536fdfb7-20dd-4d23-886c-8e842b6844fd@default>> <<83lhal1qtm.fsf@gnu.org>> <<2c1ac781-86b8-4365-8466-52455afb79f6@default>> <<83k2q423x7.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 1446217855 6873 80.91.229.3 (30 Oct 2015 15:10:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Oct 2015 15:10:55 +0000 (UTC) Cc: 21780@debbugs.gnu.org To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 30 16:10:42 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 1ZsBKE-0004N4-Jx for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Oct 2015 16:10:42 +0100 Original-Received: from localhost ([::1]:51193 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsBKD-0005LH-V1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Oct 2015 11:10:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsBIf-0002Jp-Ia for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2015 11:09:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZsBIc-0003V1-CE for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2015 11:09:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsBIc-0003Ui-9k for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2015 11:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZsBIb-00084y-LU for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2015 11:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Oct 2015 15:09: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-submit@debbugs.gnu.org id=B21780.144621770030998 (code B ref 21780); Fri, 30 Oct 2015 15:09:01 +0000 Original-Received: (at 21780) by debbugs.gnu.org; 30 Oct 2015 15:08:20 +0000 Original-Received: from localhost ([127.0.0.1]:46348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZsBHv-00083s-HC for submit@debbugs.gnu.org; Fri, 30 Oct 2015 11:08:19 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:49950) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZsBHb-000834-F6 for 21780@debbugs.gnu.org; Fri, 30 Oct 2015 11:08:18 -0400 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t9UF7tJW026995 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 30 Oct 2015 15:07:56 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t9UF7t8e025292 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 30 Oct 2015 15:07:55 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 t9UF7tBI003928; Fri, 30 Oct 2015 15:07:55 GMT In-Reply-To: <<83k2q423x7.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: aserv0022.oracle.com [141.146.126.234] 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:108192 Archived-At: > > I think now that what I did earlier, when specified utf-8, I was > > using my setup. When I try that again (with my setup), I see the > > problem I reported. >=20 > So the question now becomes what do you have in your setup that causes > this. I'm guessing you do something that changes the defaults for > encoding/decoding text. I have tons of stuff in my setup. Let me know what I might search for that might affect encoding/decoding. > > Also, with my setup the *Warning* text is different. Instead of > > providing lots of possible encoding choices and using > > chinese-iso-8bit as the default (which is what I get with emacs > > -Q - why is that, BTW?), it says: > > > > Select one of the safe coding systems listed below, > > or cancel the writing with C-g and edit the buffer > > to remove or modify the problematic characters, > > or specify any other coding system (and risk losing > > the problematic characters). > > > > raw-text no-conversion >=20 > What its suggests depend on your customizations. Such as? Again, could it be affected by the default font choice? > > > UTF-8 should have worked. I wouldn't expect you to see octal escapes > > > after saving in UTF-8. > > > > See above for, I think, the explanation of what I did and saw. >=20 > It doesn't. You have something in your customizations that runs afoul > of your expectations (which do work in "emacs -Q"). Please read again what I said about the crash. I think it at least explains why I saw octal escapes when I visited the last-saved file - it was saved with raw text. Only the auto-save file was saved with utf-8. When I visited the file in a new session, it showed the octal escapes because it was saved as raw text. Why that happened I'm not sure. Perhaps when I did `C-x C-w' the *Help* buffer was first saved as raw text (?), then autosaved as utf-8, then the crash interrupted finally resaving the file itself as utf-8 (?). You will need to give me an idea what to look for, if I am to try hunting for something in my init file and all that it loads. One thing I do is this, to get Unix-style line endings: (setq-default buffer-file-coding-system 'undecided-unix) And I do this: (setq process-coding-system-alist (cons '("bash" . (raw-text-dos . raw-text-unix)) process-coding-system-alist)) But I don't imagine that either of those is related to this.