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: Sat, 16 Oct 2004 20:14:33 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <20041017001433.GA32553@fencepost> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1097972180 7871 80.91.229.6 (17 Oct 2004 00:16:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Oct 2004 00:16:20 +0000 (UTC) Cc: handa@etl.go.jp, emacs-devel@gnu.org, Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 17 02:16:11 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 1CIyiZ-0000Lx-00 for ; Sun, 17 Oct 2004 02:16:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CIypm-0001gu-Iw for ged-emacs-devel@m.gmane.org; Sat, 16 Oct 2004 20:23:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CIypf-0001gp-Q7 for emacs-devel@gnu.org; Sat, 16 Oct 2004 20:23:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CIypf-0001gd-Cp for emacs-devel@gnu.org; Sat, 16 Oct 2004 20:23:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CIypf-0001ga-AF for emacs-devel@gnu.org; Sat, 16 Oct 2004 20:23:31 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CIyha-0002YF-8p for emacs-devel@gnu.org; Sat, 16 Oct 2004 20:15:10 -0400 Original-Received: from miles by fencepost.gnu.org with local (Exim 4.34) id 1CIygz-0000HF-Te; Sat, 16 Oct 2004 20:14:33 -0400 Original-To: Richard Stallman Content-Disposition: inline In-Reply-To: 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:28494 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28494 On Sat, Oct 16, 2004 at 09:53:01AM -0400, Richard Stallman wrote: > The problem is that setting the Emacs language-environment (with > `set-language-environment') _overrides_ the initial settings made based on > LANG. That's wrong in this case, I think. > > So you're suggesting that set-language-environment simply not change > these settings? That might be ok; however, in other cases > we might want different behavior. I think the values for these settings that set-language-environment uses might provide useful _defaults_ (if there is no more specific setting in force). 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 precisely are these settings? I'm thinking about file-name-coding-system (and default-file-name-coding-system); I don't know where the process I/O coding system is stored. -Miles -- "Whatever you do will be insignificant, but it is very important that you do it." Mahatma Ghandi