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: Tue, 26 Jan 2016 17:14:15 +0200 Message-ID: <83lh7c1igo.fsf@gnu.org> References: <83twm01ju1.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1453821254 25223 80.91.229.3 (26 Jan 2016 15:14:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Jan 2016 15:14:14 +0000 (UTC) Cc: 22392@debbugs.gnu.org, alan@idiocy.org, emacs-devel@gnu.org To: Anders Lindgren Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 26 16:14:09 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 1aO5Jo-0007Mu-Tr for ged-emacs-devel@m.gmane.org; Tue, 26 Jan 2016 16:14:09 +0100 Original-Received: from localhost ([::1]:44603 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO5Jk-0000bR-L3 for ged-emacs-devel@m.gmane.org; Tue, 26 Jan 2016 10:14:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO5JY-0000b8-2V for emacs-devel@gnu.org; Tue, 26 Jan 2016 10:13:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aO5JT-0006ki-4C for emacs-devel@gnu.org; Tue, 26 Jan 2016 10:13:52 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO5JT-0006ke-1E; Tue, 26 Jan 2016 10:13:47 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1341 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aO5JS-0008LT-9q; Tue, 26 Jan 2016 10:13:46 -0500 In-reply-to: (message from Anders Lindgren on Tue, 26 Jan 2016 16:06:38 +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:198852 Archived-At: > Date: Tue, 26 Jan 2016 16:06:38 +0100 > From: Anders Lindgren > Cc: 22392@debbugs.gnu.org, Alan Third , > emacs-devel > > > * Have you considered populating `process-environment' instead of setting > LANG > > in the Emacs process? Would there be any advantages/disadvantages with > this > > approach? > > process-environment gets passed to child processes, right? > > > Yes, that is why I asked if he had considered that approach. The reason I asked > was if there was any advantage in setting the LANG variable of the Emacs > process itself, or if this only was of interest of subprocesses. Passing our LANG to subprocesses would be a bad idea, I think. Emacs is not supposed to change the environment of the child processes just because it needs that for itself.