all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
To: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org, miles@gnu.org
Subject: Re: emacs silently ignores buffer file encoding?
Date: Tue, 03 Mar 2009 11:00:19 +0900	[thread overview]
Message-ID: <E1LeJvf-0001m9-Ol@etlken> (raw)
In-Reply-To: <E1LYyaC-0003ve-HJ@etlken> (message from Kenichi Handa on Mon, 16 Feb 2009 17:12:04 +0900)

In article <E1LYyaC-0003ve-HJ@etlken>, Kenichi Handa <handa@m17n.org> writes:

> In article <buoprhocjle.fsf@dhlpc061.dev.necel.com>, Miles Bader <miles.bader@necel.com> writes:
> > (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.

> > This doesn't seem right...

> I agree.  I'll work on it if nobody else is working on it.

I've just installed these fixes:

2009-03-03  Kenichi Handa  <handa@m17n.org>

	* files.el (basic-save-buffer-1): Set car part of
	buffer-file-coding-system-explicit.
	(revert-buffer): Check car part of
	buffer-file-coding-system-explicit.

	* international/mule-cmds.el (select-safe-coding-system): If cdr
	part of buffer-file-coding-system-explicit is set, ignore
	default-buffer-file-coding-system and the most preferred coding
	system.

	* international/mule.el (set-buffer-file-coding-system): Set cdr
	part of buffer-file-coding-system-explicit.
	(after-insert-file-set-coding): Set
	buffer-file-coding-system-explicit to a cons.

---
Kenichi Handa
handa@m17n.org




      reply	other threads:[~2009-03-03  2:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-12  5:25 emacs silently ignores buffer file encoding? Miles Bader
2009-02-12 14:29 ` Stefan Monnier
2009-02-12 23:30   ` Miles Bader
2009-02-12 23:31     ` Glenn Morris
2009-02-16  8:12 ` Kenichi Handa
2009-03-03  2:00   ` Kenichi Handa [this message]

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

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

  git send-email \
    --in-reply-to=E1LeJvf-0001m9-Ol@etlken \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    --cc=miles@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.