From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#2317: emacs silently ignores buffer file encoding? Date: Wed, 18 Mar 2009 16:32:37 +0900 Message-ID: References: <874oxudat2.fsf@cyd.mit.edu> <87hc1sy1qk.fsf@turtle.gmx.de> Reply-To: Kenichi Handa , 2317@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1237362244 5728 80.91.229.12 (18 Mar 2009 07:44:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Mar 2009 07:44:04 +0000 (UTC) Cc: cyd@stupidchicken.com, 2317@emacsbugs.donarmstrong.com, miles.bader@necel.com To: Sven Joachim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 18 08:45:20 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LjqSl-000128-Jw for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Mar 2009 08:45:19 +0100 Original-Received: from localhost ([127.0.0.1]:50987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjqRP-0002A1-3X for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Mar 2009 03:43:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LjqRL-00029p-4E for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2009 03:43:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LjqRG-00027L-Fl for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2009 03:43:50 -0400 Original-Received: from [199.232.76.173] (port=36781 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjqRG-000276-9u for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2009 03:43:46 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33255) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LjqRF-0004vT-O2 for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2009 03:43:46 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2I7hhre022819; Wed, 18 Mar 2009 00:43:43 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2I7e74O021968; Wed, 18 Mar 2009 00:40:07 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 18 Mar 2009 07:40:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2317 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2317-submit@emacsbugs.donarmstrong.com id=B2317.123736154020376 (code B ref 2317); Wed, 18 Mar 2009 07:40:06 +0000 Original-Received: (at 2317) by emacsbugs.donarmstrong.com; 18 Mar 2009 07:32:20 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2I7WGlC020370 for <2317@emacsbugs.donarmstrong.com>; Wed, 18 Mar 2009 00:32:18 -0700 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n2I7WFL1020880; Wed, 18 Mar 2009 16:32:15 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n2I7WFX7008388; Wed, 18 Mar 2009 16:32:15 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id n2I7WE3S008410; Wed, 18 Mar 2009 16:32:14 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LjqGT-0001bF-PJ; Wed, 18 Mar 2009 16:32:37 +0900 In-reply-to: <87hc1sy1qk.fsf@turtle.gmx.de> (message from Sven Joachim on Tue, 17 Mar 2009 09:47:47 +0100) X-MIME-Autoconverted: from 8bit to quoted-printable by rzlab.ucr.edu id n2I7hhre022819 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 18 Mar 2009 03:43:50 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26454 Archived-At: In article <87hc1sy1qk.fsf@turtle.gmx.de>, Sven Joachim = writes: > On 2009-03-15 17:12 +0100, Chong Yidong wrote: >>> (1) Start emacs -Q >>> (2) Visit "/tmp/fff" >>> (3) Insert the following chars: "=CE=B8=CF=91=CE=98" >>> (4) Set the buffer file encoding to latin1 with: C-x C-m f latin-1 RE= T >>> (5) Save the buffer: C-x C-s >>>=20 >>> For me, "/tmp/fff" is saved sucessfully, with no error or prompt, usi= ng >>> an encoding of utf-8 -- despite my having explicitly requested latin-= 1. > > > > I think this bug may have been fixed. ISTR seeing the same result wh= en > > I tested with your recipe a few weeks ago. With latest CVS, however,= I > > get a "Select coding system" prompt. Can you confirm? > This has been fixed on March 3 by Handa-san, see [1]. However, this fi= x > has side effects that I find very annoying: if I visit a file containin= g > only ASCII characters and insert non-ASCII characters into the buffer, > the "Select coding system" prompt pops up as well, although I never > asked about a specific coding system and would be completely satisfied > with Emacs silently choosing UTF-8[2] in that case. Oops, this is surely a bad side effect. I've just fixed it. --- Kenichi Handa handa@m17n.org