GNU bug report logs - #2317
emacs silently ignores buffer file encoding?

Previous Next

Package: emacs;

Reported by: Miles Bader <miles <at> gnu.org>

Date: Fri, 13 Feb 2009 02:25:04 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Sven Joachim <svenjoac <at> gmx.de>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 2317 <at> debbugs.gnu.org, Miles Bader <miles.bader <at> necel.com>,
        Kenichi Handa <handa <at> m17n.org>
Subject: bug#2317: emacs silently ignores buffer file encoding?
Date: Tue, 17 Mar 2009 09:47:47 +0100
On 2009-03-15 17:12 +0100, Chong Yidong wrote:

>> (1) Start emacs -Q
>> (2) Visit "/tmp/fff"
>> (3) Insert the following chars: "θϑΘ"
>> (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, using
>> 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.




This bug report was last modified 15 years and 121 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.