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: Ivan Shmakov
Subject: bug#19251: 24.4; LANG not applied in shell command
Date: Tue, 02 Dec 2014 10:22:22 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

>>>>> 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





reply via email to

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