help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs refusing to switch to iso-latin-1 (on the way to be SOLVED)


From: Sébastien Vauban
Subject: Re: Emacs refusing to switch to iso-latin-1 (on the way to be SOLVED)
Date: Fri, 15 Feb 2008 09:45:17 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)

Hi Stefan,

>>> My request to "use iso-latin-1-unix for saving this buffer"
>>> (`C-x RET f iso-latin-1 RET') is not respected.
>>
>> Because your file does not start with
>> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> [...] When Emacs saves a file, it tries to use the encoding
> that it would use when reading the file (this is necessary in
> order to ensure that saving and reloading gives the same text,
> which I hope you agree is important).

I do agree. Thanks for making this clear to me, by explaining
how it behaves!


> Since XML files are decoded as utf-8 by default, Emacs has to
> save it as utf-8 by default.
>
> The bug really is in `C-x RET f': it should complain that the
> file's header specify utf-8 encoding (in this case by
> omission) and hence iso-latin-1 cannot be used.

Un-der-stood.

I'm happy we do agree that there was something not totally
normal in the way Emacs behaves in this case (failing silently,
instead of telling me why it can't go on with my request).


> Please report it as a bug via M-x report-emacs-bug.

Just did.

Thank you very much to all,
  Seb

-- 
Sébastien Vauban


reply via email to

[Prev in Thread] Current Thread [Next in Thread]