From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.bugs Subject: bug#2317: emacs silently ignores buffer file encoding? Date: Tue, 17 Mar 2009 09:47:47 +0100 Message-ID: <87hc1sy1qk.fsf@turtle.gmx.de> References: <874oxudat2.fsf@cyd.mit.edu> Reply-To: Sven Joachim , 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 1237280677 17141 80.91.229.12 (17 Mar 2009 09:04:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Mar 2009 09:04:37 +0000 (UTC) Cc: 2317@emacsbugs.donarmstrong.com, Miles Bader To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 17 10:05:53 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 1LjVEe-0000O0-U0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Mar 2009 10:05:42 +0100 Original-Received: from localhost ([127.0.0.1]:34156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjVDI-0000RZ-Ii for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Mar 2009 05:03:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LjVDD-0000QT-7U for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2009 05:03:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LjVD8-0000P4-GJ for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2009 05:03:50 -0400 Original-Received: from [199.232.76.173] (port=57083 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjVD8-0000P1-Bc for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2009 05:03:46 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56787) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LjVD7-0006BZ-PR for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2009 05:03: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 n2H93gTU032381; Tue, 17 Mar 2009 02:03:42 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2H8t4kY030219; Tue, 17 Mar 2009 01:55:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Sven Joachim Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 17 Mar 2009 08:55:04 +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.123727968028751 (code B ref 2317); Tue, 17 Mar 2009 08:55:04 +0000 Original-Received: (at 2317) by emacsbugs.donarmstrong.com; 17 Mar 2009 08:48:00 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id n2H8lubJ028745 for <2317@emacsbugs.donarmstrong.com>; Tue, 17 Mar 2009 01:47:58 -0700 Original-Received: (qmail invoked by alias); 17 Mar 2009 08:47:50 -0000 Original-Received: from p54864177.dip.t-dialin.net (EHLO turtle.gmx.de) [84.134.65.119] by mail.gmx.net (mp048) with SMTP; 17 Mar 2009 09:47:50 +0100 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX19tDDo6jU9tCIwmsH1M2wHpHGak+t797++6wH4sCl 6MNtr4buU8RO7M Original-Received: by turtle.gmx.de (Postfix, from userid 1000) id 01124354AF; Tue, 17 Mar 2009 09:47:47 +0100 (CET) In-Reply-To: <874oxudat2.fsf@cyd.mit.edu> (Chong Yidong's message of "Sun, 15 Mar 2009 12:12:57 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.57 X-MIME-Autoconverted: from 8bit to quoted-printable by rzlab.ucr.edu id n2H93gTU032381 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 17 Mar 2009 05:03: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:26427 Archived-At: 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 RET >> (5) Save the buffer: C-x C-s >> >> For me, "/tmp/fff" is saved sucessfully, with no error or prompt, usin= g >> 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 when > 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 fix has side effects that I find very annoying: if I visit a file containing 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. 1. http://lists.gnu.org/archive/html/emacs-devel/2009-03/msg00011.html 2. Or whatever the preferred coding system for new files happens to be.