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

Re: problem with setlocale trick in gettext.c

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 25, 2012, 17:31 UTC
Message-ID
<7va9wevwjr.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CACsJy8A+YvdGc6LM5baFqHoB91p6TAjQ9kKXuaPspvL--mfe0Q@mail.gmail.com>
Nguyen Thai Ngoc Duy <pclouds@gmail.com> writes:
> I think the setlocale() trick in init_gettext_charset() messes up
> locale support from library. Currently I get
>
> fatal: Could not switch to '/foo/': Kh?ng c? t?p tin ho?c th? m?c nh? v?y

That pretty much matches what the big comment before your patch disables, doesn't it? Could it be that newer/older libc differ in the behaviour around this code?

Previous: Nguyen Thai Ngoc Duy
Message 2 of 2 in “problem with setlocale trick in gettext.c”
  1. Nguyen Thai Ngoc DuySep 24, 2012
  2. Junio C HamanoSep 25, 2012

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.