From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Setting file-name/process coding system from LANG Date: Mon, 25 Oct 2004 09:13:46 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <20041017001433.GA32553@fencepost> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1098710196 11322 80.91.229.6 (25 Oct 2004 13:16:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Oct 2004 13:16:36 +0000 (UTC) Cc: handa@etl.go.jp, emacs-devel@gnu.org, miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 25 15:16:17 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 1CM4ht-0003F3-00 for ; Mon, 25 Oct 2004 15:16:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CM4pX-0001vD-6G for ged-emacs-devel@m.gmane.org; Mon, 25 Oct 2004 09:24:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CM4o3-00015r-Us for emacs-devel@gnu.org; Mon, 25 Oct 2004 09:22:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CM4nz-00013b-LU for emacs-devel@gnu.org; Mon, 25 Oct 2004 09:22:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CM4nz-00013E-IX for emacs-devel@gnu.org; Mon, 25 Oct 2004 09:22:35 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CM4g0-0000ty-Ju for emacs-devel@gnu.org; Mon, 25 Oct 2004 09:14:20 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1CM4fS-00054S-71; Mon, 25 Oct 2004 09:13:46 -0400 Original-To: Miles Bader In-reply-to: <20041017001433.GA32553@fencepost> (message from Miles Bader on Sat, 16 Oct 2004 20:14:33 -0400) 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:28908 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28908 Currently set-language-environment sets `default-file-name-coding-system', which is overridden by `file-name-coding-system'. Startup also apparently sets `default-file-name-coding-system' using LANG. If startup set `file-name-coding-system' from LANG instead, then I think that would provide the proper semantics in this case. What do people think of this suggestion? Which of these scenarios is more common? I'm not sure, but it doesn't seem unreasonable to assume that _if_ LANG contains an explicit coding system, that it's "correct". As long as it is not hard for users to override this setting explicitly, when they want to, I agree. There was also the suggestion of advising users to run set-locale-environment in order to get back to the settings specified by the locale. And I had this idea: Perhaps we should add a single new language environment named `locale' or `according-to-locale' which has the effect of doing set-locale-environment. Another idea is for set-language-environment to allow a language environment name followed by a coding system name. This would appear to the user rather similar to Handa's suggestion, but it is much easier to implement. It would not construct a new language environment for the combination, it would only set the language environment and then set the coding system. The previous discussion did not consider all of these alternatives side by side. Could people start a new discussion doing so? Note that the issue that was raised about how to choose the default coding system for Chinese language environments is not really relevant here; it is a real issue, but it is orthogonal to this one.