From: Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: 19251-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org
Subject: bug#19251: 24.4; LANG not applied in shell command
Date: Tue, 02 Dec 2014 13:22:40 +0100 [thread overview]
Message-ID: <86oarmqm0f.fsf@example.com> (raw)
In-Reply-To: <mailman.15132.1417515793.1147.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org> (Ivan Shmakov's message of "Tue, 02 Dec 2014 10:22:22 +0000")
Ivan Shmakov wrote:
>> 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.
I first tried LC_ALL=en_US. No success.
Your suggestion LC_ALL=C did work. Thanks!
(This can be closed -- and Emacs did the right thing btw)
Best regards,
Seb
--
Sebastien Vauban
next prev parent reply other threads:[~2014-12-02 12: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
[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 [this message]
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=86oarmqm0f.fsf@example.com \
--to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
--cc=19251-ubl+/3LiMTaZdePnXv/OxA@public.gmane.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).