From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Kenichi Handa <handa@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: request to revert the chnage of revno 112925
Date: Wed, 19 Jun 2013 12:54:47 -0400 [thread overview]
Message-ID: <jwvehbyavvj.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <yw7a9mm865j.fsf@fencepost.gnu.org>
>> But the core of what I want: make it so that utf-8 Elisp files are
>> always recognized correctly, even in the absence of a coding: tag, and
>> regardless of the user's locale.
>> The way I implemented it broke recognition of iso-2022, but if there;s
>> some other way that doesn't break it, that's even better.
> I'd like to find a better solution, but at first please
> clarify the requirements.
> * What to do with an ASCII file? Previously find-file for
> such a file results in undecided-xxx
> buffer-file-coding-system. Now it's utf-8-xxx.
I like the utf-8 better, but either is OK.
> * What to do with an invalid UTF-8 file. Previously,
> find-file detects a proper coding-system for such a file.
> Now utf-8 is forced and any invalid UTF-8 byte sequences
> are decoded as raw bytes.
Ideally: emit a warning, and then try to find a more appropriate coding
system (e.g. iso-2022).
> * What to do with null byte detection. Previously, if a
> *.el file contains a null byte and
> inhibit-null-byte-detection is nil (the default), it's
> detected as a binary file. Now utf-8 is forced regardless
> of inhibit-null-byte-detection.
I like the utf-8 better, but I don't know of any concrete case where it
makes a significant difference, so either way is OK.
Stefan
next prev parent reply other threads:[~2013-06-19 16:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-19 11:54 request to revert the chnage of revno 112925 Kenichi Handa
2013-06-19 12:59 ` Stefan Monnier
2013-06-19 15:35 ` Kenichi Handa
2013-06-19 16:11 ` Paul Eggert
2013-06-19 20:49 ` Stefan Monnier
2013-06-19 21:15 ` Paul Eggert
2013-06-20 2:09 ` Stefan Monnier
2013-06-21 5:25 ` Achim Gratz
2013-06-21 6:48 ` Stephen J. Turnbull
2013-06-19 16:54 ` Stefan Monnier [this message]
2013-06-22 12:36 ` Kenichi Handa
2013-06-22 12:46 ` Eli Zaretskii
2013-06-22 12:54 ` Juanma Barranquero
2013-06-22 15:26 ` Stefan Monnier
2013-06-29 3:50 ` request to revert the change " Kenichi Handa
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=jwvehbyavvj.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=handa@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).