From: Ivan Shmakov <ivan@siamics.net>
To: 19251@debbugs.gnu.org
Cc: 19251-submitter@debbugs.gnu.org
Subject: bug#19251: 24.4; LANG not applied in shell command
Date: Tue, 02 Dec 2014 10:22:22 +0000 [thread overview]
Message-ID: <87388yqrkx.fsf@violet.siamics.net> (raw)
In-Reply-To: <867fyatlvi.fsf@example.com> (Sebastien Vauban's message of "Tue, 02 Dec 2014 10:57:21 +0100")
>>>>> Sebastien Vauban writes:
[…]
> This is because my function looks for the string "Already up-to-date"
> in Git's output, and his output is in French – while I forced LANG 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’ve 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=C instead of a LANG
override.
BTW, on GNU/Linux, the ‘locale’ command helps troubleshooting
such issues.
--
FSF associate member #7257 http://boycottsystemd.org/ … 3013 B6A0 230E 334A
next prev parent reply other threads:[~2014-12-02 10:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-02 9:57 bug#19251: 24.4; LANG not applied in shell command Sebastien Vauban
2014-12-02 10:22 ` Ivan Shmakov [this message]
[not found] ` <mailman.15132.1417515793.1147.bug-gnu-emacs@gnu.org>
[not found] ` <mailman.15132.1417515793.1147.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2014-12-02 12:22 ` Sebastien Vauban
2014-12-02 12:50 ` Ivan Shmakov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87388yqrkx.fsf@violet.siamics.net \
--to=ivan@siamics.net \
--cc=19251-submitter@debbugs.gnu.org \
--cc=19251@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).