From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: request to revert the chnage of revno 112925 Date: Wed, 19 Jun 2013 12:54:47 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT X-Trace: ger.gmane.org 1371660898 29947 80.91.229.3 (19 Jun 2013 16:54:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Jun 2013 16:54:58 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 19 18:54:58 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UpLeq-0003dX-Cm for ged-emacs-devel@m.gmane.org; Wed, 19 Jun 2013 18:54:56 +0200 Original-Received: from localhost ([::1]:44689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpLeq-0002Sx-2u for ged-emacs-devel@m.gmane.org; Wed, 19 Jun 2013 12:54:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpLel-0002RL-Ft for emacs-devel@gnu.org; Wed, 19 Jun 2013 12:54:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpLek-0004DJ-6u for emacs-devel@gnu.org; Wed, 19 Jun 2013 12:54:51 -0400 Original-Received: from relais.videotron.ca ([24.201.245.36]:50055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpLek-0004DF-2w; Wed, 19 Jun 2013 12:54:50 -0400 Original-Received: from ceviche.home ([24.201.64.104]) by VL-VM-MR002.ip.videotron.ca (Oracle Communications Messaging Exchange Server 7u4-22.01 64bit (built Apr 21 2011)) with ESMTP id <0MON00NUMGBC5000@VL-VM-MR002.ip.videotron.ca>; Wed, 19 Jun 2013 12:54:49 -0400 (EDT) Original-Received: by ceviche.home (Postfix, from userid 20848) id 52609660E8; Wed, 19 Jun 2013 12:54:47 -0400 (EDT) In-reply-to: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 24.201.245.36 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:160687 Archived-At: >> 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