On Sat, Feb 14, 2026 at 04:34:22PM +0100, Bruno Haible wrote:
> Eli Zaretskii wrote:
> > > as explained in [1].
> > 
> > So the problem is that, unless the locale is pushed into the
> > environment, libintl cannot be sure to know about the modified locale?
> 
> Unless the locale name is pushed into the environment, libintl cannot
> do its job properly.
 
I'd read the comment you referred to before, but hadn't understood the
relevance of HAVE_LOCALE_NULL until this point.  I hadn't understood what
"setlocale (category, NULL)" was being used for and what the alternative
was.

It seems like it is still not clear from the gettext documentation
how one should access translations other than those from the locale
defined in the environment (which should be done by changing the
environment).

It's very natural for users of gettext to want to write
"setlocale (category, locale);", even if does not work for gettext on
all system types.

              • ... Gavin Smith
              • ... Gavin Smith
              • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
          • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
            • ... Eli Zaretskii
              • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
              • ... Eli Zaretskii
              • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
              • ... Eli Zaretskii
              • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
              • ... Gavin Smith
              • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
            • ... pertusus
      • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
        • ... Patrice Dumas
  • Re: ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
    • ... Patrice Dumas
      • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
    • ... Patrice Dumas
      • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
        • ... Gavin Smith

Reply via email to