Hi David,

On Thu, Jun 25, 2026 at 01:03:23PM -0700, David Aguilar wrote:
I'm not super familiar with the semantics of these variables, but the solve
seems straightforward.

To verify -- the logic should be that if LC_MESSAGES is defined then it
should override LANG, is that correct?

Yes. See locale(7):

     (1)  If there is a non-null environment  variable  LC_ALL,  the  value  of
          LC_ALL is used.

     (2)  If  an  environment  variable  with the same name as one of the cate‐
          gories above exists and is non-null, its value is used for that cate‐
          gory.

     (3)  If there is a non-null environment variable LANG, the value  of  LANG
          is used.

In other words: LC_ALL overrides everything. LC_something overrides LANG. LANG is the default, in absence of LC_*

Greetings
Marc

--
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

Reply via email to