From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: request to revert the chnage of revno 112925 Date: Sat, 22 Jun 2013 08:36:24 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1371904589 26181 80.91.229.3 (22 Jun 2013 12:36:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Jun 2013 12:36:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 22 14:36:31 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 1UqN3N-0006Ei-SM for ged-emacs-devel@m.gmane.org; Sat, 22 Jun 2013 14:36:29 +0200 Original-Received: from localhost ([::1]:42735 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqN3N-0003XV-H8 for ged-emacs-devel@m.gmane.org; Sat, 22 Jun 2013 08:36:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqN3K-0003XF-06 for emacs-devel@gnu.org; Sat, 22 Jun 2013 08:36:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UqN3J-0001Th-3Y for emacs-devel@gnu.org; Sat, 22 Jun 2013 08:36:25 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqN3J-0001Tc-07 for emacs-devel@gnu.org; Sat, 22 Jun 2013 08:36:25 -0400 Original-Received: from handa by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UqN3I-000299-I2; Sat, 22 Jun 2013 08:36:24 -0400 In-Reply-To: (message from Stefan Monnier on Wed, 19 Jun 2013 12:54:47 -0400) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:160879 Archived-At: In article , Stefan Monnier writes: > > * What to do with an ASCII file? > I like the utf-8 better, but either is OK. > > * What to do with an invalid UTF-8 file. > 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. > 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. Then, how about implementing a coding system slightly different from `undecided'. The differences are: (1) On reading, if a file contains 8-bit bytes and they are all valid UTF-8 sequences, detect the source as utf-8 regardless of the currrent coding priorities. (2) On writing, if a buffer contains non-ASCII characters, encode the buffer contents by utf-8. How to name it? Just `undecided-utf-8'? --- Kenichi Handa handa@gnu.org