From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Cyrillic vs UTF-8 Date: Mon, 19 May 2003 09:40:29 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200305190040.JAA01942@etlken.m17n.org> References: <1858-Fri25Apr2003194023+0300-eliz@elta.co.il> <200304282149.h3SLnxSU002624@rum.cs.yale.edu> 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: main.gmane.org 1053304969 31525 80.91.224.249 (19 May 2003 00:42:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 19 May 2003 00:42:49 +0000 (UTC) Cc: jas@extundo.com Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon May 19 02:42:47 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19HYjn-0008CL-00 for ; Mon, 19 May 2003 02:42:47 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19HYtM-0006Qy-00 for ; Mon, 19 May 2003 02:52:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19HYk0-00081H-01 for emacs-devel@quimby.gnus.org; Sun, 18 May 2003 20:43:00 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19HYja-0007yb-00 for emacs-devel@gnu.org; Sun, 18 May 2003 20:42:34 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19HYjY-0007vj-00 for emacs-devel@gnu.org; Sun, 18 May 2003 20:42:33 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19HYhn-0006a6-00 for emacs-devel@gnu.org; Sun, 18 May 2003 20:40:43 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2])h4J0eUu02099; Mon, 19 May 2003 09:40:30 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) h4J0eT918773; Mon, 19 May 2003 09:40:30 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id JAA01942; Mon, 19 May 2003 09:40:29 +0900 (JST) Original-To: monnier+gnu/emacs@rum.cs.yale.edu In-reply-to: <200304282149.h3SLnxSU002624@rum.cs.yale.edu> (monnier+gnu/emacs@rum.cs.yale.edu) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) Original-cc: eliz@elta.co.il Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13981 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13981 I'm sorry for the late response on this thread. In article <200304282149.h3SLnxSU002624@rum.cs.yale.edu>, "Stefan Monnier" writes: > Agreed, but I think one of the problems is that the preference-ordering > is the same for load-time-detection as it is for save-time-detection, > so if you move utf-8 up for detection you end up saving all new files > in utf-8 which is not OK in non-utf-8 locales. > I suggested introducing a second preference-order, but nothing came > out of it (probably because I didn't code anything up). I'd like to avoid introducing a new mechanism to control a coding system as far as possible. And, the second preference-order (used for saving) works only in this case: (1) The buffer file coding system can't encode the current buffer, and (2) The most preferred coding system can encode the current buffer, and (3) A user doesn't want to use the most preferred one. Isn't it a very rare case? --- Ken'ichi HANDA handa@m17n.org