git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] t/lib-httpd: pass LANG to Apache

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 6, 2022, 16:20 UTC
Message-ID
<xmqqy1tsnct8.fsf@gitster.g>
In-Reply-To
<Yz31Lv+97z9p/0TK@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 9 quoted lines
>> Shouldn't we be doing the same here?
>
> I think setting both probably is overkill. But if we are going to set
> one, the important one is LC_ALL. It overrides specific LC_* variables,
> which in turn override LANG. So just setting LANG would get confused if
> LC_MESSAGES were set, for example.
>
> That said, there probably is no downside to passing through both, so we
> might as well do so.

Yup. I suspect that the habit dates back to before LC_* was widespread and some platforms needed LANG. On modern systems that understand i18n and do not need to set NO_GETTEXT, forcing LC_ALL should be sufficient.

> Other than that, the patch is obviously the right thing to be doing. I'm
> surprised it took this long for it to be a problem. ;)
Thanks.
Previous: René Scharfe
Message 5 of 5 in “t/lib-httpd: pass LANG to Apache”
  1. t/lib-httpd: pass LANG to ApacheRené Scharfe, Oct 4, 2022
  2. Junio C HamanoOct 5, 2022
  3. Jeff KingOct 5, 2022
  4. t/lib-httpd: pass LANG and LC_ALL to ApacheRené Scharfe, Oct 6, 2022
  5. Junio C HamanoOct 6, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.