From: "Sébastien Vauban" <zthjwsqqafhv@spammotel.com>
To: help-gnu-emacs@gnu.org
Subject: Emacs refusing to switch to iso-latin-1
Date: Mon, 11 Feb 2008 12:25:13 +0100 [thread overview]
Message-ID: <87y79rohuu.fsf@mundaneum.com> (raw)
Hi,
For a couple of weeks, I've chosen to select utf-8 as my default
coding system. For the sake of facility, I resisted for years,
but I'd have to adapt sooner or later, so...
--8<---------------cut here---------------start------------->8---
;; system locale to use for formatting time values
(setq system-time-locale "en_US.utf8")
;; default coding system (for new files)
(prefer-coding-system 'utf-8)
;; to copy and paste to and from Emacs through the clipboard
(set-selection-coding-system 'utf-8)
--8<---------------cut here---------------end--------------->8---
Doing so, my Important settings are now:
--8<---------------cut here---------------start------------->8---
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
--8<---------------cut here---------------end--------------->8---
My problem is that, when creating of updating files for some
applications, I sometimes have to output pure iso-latin-1...
I did create a new file, from a scratch buffer. It was thus
considered as utf-8 format.
I told emacs to save the file in iso-latin-1-unix, with `C-x
<RET> f iso-latin-1-unix'.
Note - BTW, it'd be better if it was called `C-x <RET> s'
(for saving), like `C-x <RET> r' is used for revert.
I see:
o the coding system flag changing from `U' to `1', and
o the modified flag from `--' to `**'.
Excellent...
But, when I do my `C-x C-s', just after it's done, it see back
`-U:--' in my modeline.
Checking with `C-u C-x =' or with `hexl-mode', I see that the
file is still in utf-8; its size did not change neither...
So, I can't save in iso-latin-1...
I could reproduce it both under Windows and under Linux. And it
"works" that way 100% of the times.
Thanks for your help!!
Best regards,
Seb
--
Sébastien Vauban
next reply other threads:[~2008-02-11 11:25 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-11 11:25 Sébastien Vauban [this message]
2008-02-11 13:44 ` Emacs refusing to switch to iso-latin-1 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 ` Emacs refusing to switch to iso-latin-1 (on the way to be SOLVED) Sébastien Vauban
[not found] ` <mailman.7285.1202745751.18990.help-gnu-emacs@gnu.org>
2008-02-12 11:27 ` Emacs refusing to switch to iso-latin-1 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=87y79rohuu.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).