From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.bugs Subject: bug#19251: 24.4; LANG not applied in shell command Date: Tue, 02 Dec 2014 10:22:22 +0000 Message-ID: <87388yqrkx.fsf@violet.siamics.net> References: <867fyatlvi.fsf@example.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1417515801 5161 80.91.229.3 (2 Dec 2014 10:23:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2014 10:23:21 +0000 (UTC) Cc: 19251-submitter@debbugs.gnu.org To: 19251@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 02 11:23:15 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Xvkbz-00036G-Ln for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Dec 2014 11:23:15 +0100 Original-Received: from localhost ([::1]:35954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xvkby-0007JL-Qt for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Dec 2014 05:23:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xvkbr-0007Hb-Aq for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 05:23:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xvkbm-0003Ao-L0 for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 05:23:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xvkbm-0003Ah-HR for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 05:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xvkbm-00020j-2v for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 05:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Dec 2014 10:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19251 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19251-submit@debbugs.gnu.org id=B19251.14175157557686 (code B ref 19251); Tue, 02 Dec 2014 10:23:02 +0000 Original-Received: (at 19251) by debbugs.gnu.org; 2 Dec 2014 10:22:35 +0000 Original-Received: from localhost ([127.0.0.1]:51422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XvkbK-0001zo-JW for submit@debbugs.gnu.org; Tue, 02 Dec 2014 05:22:34 -0500 Original-Received: from fely.am-1.org ([78.47.74.50]:43175) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XvkbH-0001za-PR; Tue, 02 Dec 2014 05:22:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:Cc:To:From; bh=xUxWNsEiShUdy5C7XGO1bdoczg40lwykxf44orptDa8=; b=oxemi5oj9p+ySv4qsyq12jSndvR2sPPrxmhxdd+eWWKf/NaQfL+FnuU2+iYrw16eSt9SI5MlM3sLxvrk+wi493Z9RFjTzANZpiVuzY0O6tLdus2PXSbuog6ZJKdowNC0nqHXJx2P7ADclj+53BextY9mS3yjrn35JanFWCI8sbw=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XvkbG-0004sJ-8T; Tue, 02 Dec 2014 10:22:30 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Xvkb8-0005v0-Ty; Tue, 02 Dec 2014 17:22:23 +0700 Mail-Followup-To: 19251@debbugs.gnu.org In-Reply-To: <867fyatlvi.fsf@example.com> (Sebastien Vauban's message of "Tue, 02 Dec 2014 10:57:21 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96794 Archived-At: >>>>> Sebastien Vauban writes: [=E2=80=A6] > This is because my function looks for the string "Already up-to-date" > in Git's output, and his output is in French =E2=80=93 while I forced LA= NG to > en_US. > So, why is LANG not respected in `shell-command-to-string'? The LC_ALL environment variable takes precedence over LANG (or any other LC_ variables, for that matter.) Back a decade ago, I=E2=80=99ve seen RedHat-derived distributions using LC_ALL (instead of LANG) to set the locale, so that could be the issue. My suggestion would be to use LC_ALL=3DC instead of a LANG override. BTW, on GNU/Linux, the =E2=80=98locale=E2=80=99 command helps troubleshoot= ing such issues. --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A