From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Setting file-name/process coding system from LANG Date: Tue, 19 Oct 2004 17:51:11 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <20041019215111.GA9395@fencepost> References: <200410181304.WAA24091@etlken.m17n.org> <200410191313.WAA27071@etlken.m17n.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098222718 4480 80.91.229.6 (19 Oct 2004 21:51:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Oct 2004 21:51:58 +0000 (UTC) Cc: miles@gnu.org, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 19 23:51:50 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CK1tV-00018H-00 for ; Tue, 19 Oct 2004 23:51:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CK20r-0001f1-M4 for ged-emacs-devel@m.gmane.org; Tue, 19 Oct 2004 17:59:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CK20Q-0001Qb-Mu for emacs-devel@gnu.org; Tue, 19 Oct 2004 17:58:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CK20P-0001QD-NW for emacs-devel@gnu.org; Tue, 19 Oct 2004 17:58:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CK20P-0001QA-JR for emacs-devel@gnu.org; Tue, 19 Oct 2004 17:58:57 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CK1t0-0002Rc-LV for emacs-devel@gnu.org; Tue, 19 Oct 2004 17:51:18 -0400 Original-Received: from miles by fencepost.gnu.org with local (Exim 4.34) id 1CK1st-0002ZM-Vv; Tue, 19 Oct 2004 17:51:12 -0400 Original-To: Kenichi Handa Content-Disposition: inline In-Reply-To: <200410191313.WAA27071@etlken.m17n.org> User-Agent: Mutt/1.3.28i Blat: Foop 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28631 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28631 On Tue, Oct 19, 2004 at 10:13:53PM +0900, Kenichi Handa wrote: > > When Emacs sees LANG=ja_JP.utf8, surely it can select the Japanese > > language environment, then do something else to cause use of UTF8. > > Surely it can do this without having an explicit language environment > > for the combination of the two. > > Then a user can't recover that original setting when he once > switch to, e.g., Latin-1. Just switching back to Japanese > can't setup coding systems for utf8. Why can't we do what I suggested earlier, and set `file-name-coding-system' (and presumably some analogue for process I/O and terminal-coding-system) instead of `default-file-name-coding-system' from the "utf8" portion of LANG? Then `set-language-environment' could set `default-file-name-coding-system' but it wouldn't actually have any effect -- which at least in this circumstance seems correct. Other language-environment settings (like the tutorial language etc) would have the proper effect. > Another problem is the case of LANG=zh_CN.utf8. Currently > we don't have Chinese lang. env. We only have Chinese-GB, > Chinese-EUC-TW, Chinese-BIG5, Chinese-CNS. Which one to > use? Presumably whichever one best matches the "country" portion of LANG. -Miles -- .Numeric stability is probably not all that important when you're guessing.