unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Sébastien Vauban" <zthjwsqqafhv@spammotel.com>
To: help-gnu-emacs@gnu.org
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	[thread overview]
Message-ID: <87skzufw0y.fsf_-_@mundaneum.com> (raw)
In-Reply-To: jwvmyq3mhym.fsf-monnier+gnu.emacs.help@gnu.org

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	other threads:[~2008-02-15  8:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-11 11:25 Emacs refusing to switch to iso-latin-1 Sébastien Vauban
2008-02-11 13:44 ` Peter Dyballa
     [not found] ` <mailman.7278.1202737459.18990.help-gnu-emacs@gnu.org>
2008-02-11 14:54   ` Sébastien Vauban
2008-02-11 16:02     ` Peter Dyballa
2008-02-11 16:18     ` Peter Dyballa
2008-02-11 16:28     ` Sven Joachim
2008-02-11 16:38     ` David Kastrup
2008-02-11 16:55       ` Lennart Borgman (gmail)
     [not found]       ` <mailman.7290.1202748969.18990.help-gnu-emacs@gnu.org>
2008-02-12 12:11         ` Sébastien Vauban
2008-02-12 19:27           ` David Kastrup
2008-02-14  9:03             ` Sébastien Vauban
2008-02-14 20:58               ` Stefan Monnier
2008-02-15  9:09                 ` Sébastien Vauban
2008-02-14 19:58             ` Stefan Monnier
2008-02-15  8:45               ` Sébastien Vauban [this message]
     [not found]     ` <mailman.7285.1202745751.18990.help-gnu-emacs@gnu.org>
2008-02-12 11:27       ` Sébastien Vauban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87skzufw0y.fsf_-_@mundaneum.com \
    --to=zthjwsqqafhv@spammotel.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).