From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs OS X GUI doesn't set locale Date: Mon, 01 Feb 2016 20:57:37 +0200 Message-ID: <838u341cny.fsf@gnu.org> References: <83twm01ju1.fsf@gnu.org> <83lh7c1igo.fsf@gnu.org> <56A90735.7090508@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1454353098 7318 80.91.229.3 (1 Feb 2016 18:58:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Feb 2016 18:58:18 +0000 (UTC) Cc: 22392@debbugs.gnu.org, alan@idiocy.org, eggert@cs.ucla.edu, emacs-devel@gnu.org To: Anders Lindgren Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 01 19:58:17 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aQJft-0007bk-LL for ged-emacs-devel@m.gmane.org; Mon, 01 Feb 2016 19:58:09 +0100 Original-Received: from localhost ([::1]:53788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQJft-0003LV-0t for ged-emacs-devel@m.gmane.org; Mon, 01 Feb 2016 13:58:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQJfp-0003Kn-2c for emacs-devel@gnu.org; Mon, 01 Feb 2016 13:58:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQJfl-0006s0-TT for emacs-devel@gnu.org; Mon, 01 Feb 2016 13:58:05 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQJfl-0006rw-Pc; Mon, 01 Feb 2016 13:58:01 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1329 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aQJfk-0003kp-QM; Mon, 01 Feb 2016 13:58:01 -0500 In-reply-to: (message from Anders Lindgren on Mon, 1 Feb 2016 06:03:30 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:199136 Archived-At: > Date: Mon, 1 Feb 2016 06:03:30 +0100 > From: Anders Lindgren > Cc: Paul Eggert , Eli Zaretskii , 22392@debbugs.gnu.org, > emacs-devel > > Today, I tested this patch on OS X and GNUstep. From what I can see, it applies cleanly and work as > intended. > > As the LANG variable is set early in the initialisation process, it will be propagated to `process-environment' > and thus set for all processes started by Emacs. > > I suggest that we apply this patch, so that it will be included in the next Emacs 25 pretest. I won't argue with that any more, but I must say that I'm uneasy with this change. I'd be much happier if we could push LANG into Emacs's own environment without affecting process-environment. Paul argued that we already do something similar on MS-Windows, which is true, but native Windows programs don't look at LANG unless specifically made to do so in application code, so that setting is unlikely to affect many programs on Windows. By contrast, OS X is (AFAIK) a BSD-ish system, so I expect much more programs to change their behavior when LANG is set to something that suits Emacs, but is not necessarily "right" for the rest of the system. That's all I have to say; if you are still OK with doing that, please go ahead. Thanks.