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

Re: Does "LC_ALL=C" work on all shells?



On 14/02/2024 07:56, Gremlin wrote:
Gremlin (12024-02-13):

cat /etc/default/locale
#  File generated by update-locale
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8

Found this in a shell script:

LC_ALL=$LOC LANG=$LOC LANGUAGE=$LOC update-locale LANG=$LOC LC_ALL=$LOC LANGUAGE=$LOC

Do not do it for LANGUAGE, it should obey another conventions

    LANGUAGE=en_US:en

Its value is a list of languages, not a locale. This variable may affect messages generated by some applications, especially GUI ones, even when LC_ALL is set.



Reply to: