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: coding tags and utf-16 Date: Thu, 05 Jan 2006 13:33:43 +0900 Message-ID: References: <20051221.090033.182620434.wl@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1136435654 30705 80.91.229.2 (5 Jan 2006 04:34:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Jan 2006 04:34:14 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 05 05:34:10 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EuMpC-0006B9-D3 for ged-emacs-devel@m.gmane.org; Thu, 05 Jan 2006 05:34:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EuMqu-00019c-3n for ged-emacs-devel@m.gmane.org; Wed, 04 Jan 2006 23:35:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EuMqi-00019D-BT for emacs-devel@gnu.org; Wed, 04 Jan 2006 23:35:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EuMqh-00018k-PY for emacs-devel@gnu.org; Wed, 04 Jan 2006 23:35:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EuMqh-00018h-Nt for emacs-devel@gnu.org; Wed, 04 Jan 2006 23:35:39 -0500 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EuMsA-0002GX-8D; Wed, 04 Jan 2006 23:37:10 -0500 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id k054Xj8f000369; Thu, 5 Jan 2006 13:33:45 +0900 Original-Received: from etlken (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id k054XjhP018818; Thu, 5 Jan 2006 13:33:45 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1EuMop-0006QZ-00; Thu, 05 Jan 2006 13:33:43 +0900 Original-To: rms@gnu.org In-reply-to: (rms@gnu.org) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:48737 Archived-At: In article , "Richard M. Stallman" writes: > If a file is encoded without BOM, we must use the less > reliable heuristics to guess utf-16be or utf-16le. If you > find a coding-tag spec by ignoring all zero bytes at even > byte indexes, it means that the file is, in high > possibility, utf-16be whatever the tag value is. If you > find a coding-tag spec by ignoring all zero bytes at odd > byte indexes, it means that the file is utf-16le whatever > the tag value is. > Does Emacs already implement these heuristics? No. > But, those are anyway just heuristics; not 100% reliable. > So I think we need a user option to turn it on and off, or > perhaps a user option to select which kind of heuristics. > Should we install this option now? I can't tell whether or not it's important enough to install now because I never encountered a utf-16 file. --- Kenichi Handa handa@m17n.org