[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to make locale settings more robust
From: |
Miguel Ángel Arruga Vivas |
Subject: |
Re: How to make locale settings more robust |
Date: |
Sat, 10 Jun 2023 07:23:31 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Hi,
Anadon <joshua.r.marshall.1991@gmail.com> writes:
> I am trying to get the locale strings "uk", "uk_UA", and "uk_UA.utf8"
> to all work similarly. Currently, only the latter works.
These identifiers do not mean the same thing for all the variables you
are trying to set. LC_XXX variables[1] usually check directly on the
locale directory. LANGUAGE[2], on the other hand, should work with the
first two.
Usually this is enough:
unset LC_ALL
LANGUAGE="<locale>" <program> <args>...
Such as:
LANGUAGE="uk" foo --bar=baz
Using LANG allows overriding some of them:
unset LC_ALL
LANG="<full-locale-id>" LC_TIME="<other-locale>" <program> <args>...
LOCALEDIR is a compile time value for most programs[3] and cannot be
overriden after the binary has been built. It might depend on the
specific binary/distribution though.
Best regards,
Miguel
[1]
https://www.gnu.org/software/gettext/manual/html_node/Locale-Environment-Variables.html
[2]
https://www.gnu.org/software/gettext/manual/html_node/The-LANGUAGE-variable.html
[3]
https://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Installation-Directory-Variables.html#index-localedir-145
- How to make locale settings more robust, Anadon, 2023/06/09
- Re: How to make locale settings more robust, Bruno Haible, 2023/06/09
- Re: How to make locale settings more robust,
Miguel Ángel Arruga Vivas <=
- Re: How to make locale settings more robust, Bruno Haible, 2023/06/10
- Re: How to make locale settings more robust, Anadon, 2023/06/10
- Re: How to make locale settings more robust, Bruno Haible, 2023/06/10
- Re: How to make locale settings more robust, Anadon, 2023/06/10
- Re: How to make locale settings more robust, Gunnar Hjalmarsson, 2023/06/10
- Re: How to make locale settings more robust, Anadon, 2023/06/11
- Re: How to make locale settings more robust, Bruno Haible, 2023/06/11
- Re: How to make locale settings more robust, Anadon, 2023/06/13