bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19251: 24.4; LANG not applied in shell command


From: Sebastien Vauban
Subject: bug#19251: 24.4; LANG not applied in shell command
Date: Tue, 02 Dec 2014 13:22:40 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (windows-nt)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]