From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii 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 09:47:48 +0200 Message-ID: <83k2q423x7.fsf@gnu.org> References: <536fdfb7-20dd-4d23-886c-8e842b6844fd@default> <83lhal1qtm.fsf@gnu.org> <2c1ac781-86b8-4365-8466-52455afb79f6@default> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1446191383 14997 80.91.229.3 (30 Oct 2015 07:49:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Oct 2015 07:49:43 +0000 (UTC) Cc: 21780@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 30 08:49:25 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 1Zs4R8-0001XH-Ss for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Oct 2015 08:49:23 +0100 Original-Received: from localhost ([::1]:48998 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs4R7-0005z4-VT for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Oct 2015 03:49:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs4Qs-0005jQ-0C for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2015 03:49:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zs4Qo-0007Ew-Ph for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2015 03:49:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54505) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs4Qo-0007Er-MU for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2015 03:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zs4Qo-0004KA-FQ for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2015 03:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Oct 2015 07:49:02 +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.144619128816547 (code B ref 21780); Fri, 30 Oct 2015 07:49:02 +0000 Original-Received: (at 21780) by debbugs.gnu.org; 30 Oct 2015 07:48:08 +0000 Original-Received: from localhost ([127.0.0.1]:45213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zs4Pv-0004Io-Lo for submit@debbugs.gnu.org; Fri, 30 Oct 2015 03:48:08 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:35756) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zs4Pa-0004I6-62 for 21780@debbugs.gnu.org; Fri, 30 Oct 2015 03:48:06 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NX000L00W7ZVB00@mtaout26.012.net.il> for 21780@debbugs.gnu.org; Fri, 30 Oct 2015 09:51:12 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NX000LV3WHCXZ00@mtaout26.012.net.il>; Fri, 30 Oct 2015 09:51:12 +0200 (IST) In-reply-to: <2c1ac781-86b8-4365-8466-52455afb79f6@default> X-012-Sender: halo1@inter.net.il 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:108168 Archived-At: > Date: Thu, 29 Oct 2015 13:53:30 -0700 (PDT) > From: Drew Adams > Cc: 21780@debbugs.gnu.org > > 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. 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. > 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 What its suggests depend on your customizations. > The full warning is this, when I use my setup (which uses font > "-outline-Lucida Console-normal-normal-normal-mono-14-*-*-*-c-*-iso8859-1"): The font has nothing to do with this. > > . If the curved quotes look like raw bytes or, worse, pairs of > > non-ASCII characters, you need to visit such file like this: > > > > C-x RET c utf-8 RET C-x C-f FILE-NAME RET > > Users should not have to do that. They have been doing that since Emacs 20.1. This is how you visit a file whose encoding Emacs cannot guess correctly. You just didn't have the pleasure of bumping into this problem until now. Another possibility is to visit the file normally, see that it wasn't decoded correctly, then type "C-x RET r utf-8 RET", which will revisit the file using the specified encoding. > > 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. It doesn't. You have something in your customizations that runs afoul of your expectations (which do work in "emacs -Q").