> From: Bruno Haible <[email protected]> > Cc: [email protected], [email protected], [email protected] > Date: Thu, 12 Feb 2026 21:58:06 +0100 > > Eli Zaretskii wrote on 2026-01-13: > > And could you please explain why this "must" is true: > > > > > The reason why it does not work is that this program is not following > > > the documented requirement from > > > https://www.gnu.org/software/gettext/manual/html_node/C.html : > > > "Programmer must call setlocale (LC_ALL, "")" > > > > What's wrong with calling setlocale with second argument other than > > the empty string? > > This way of doing things works only on some platforms, not on all platforms. > For the (complicated) reasons, see the comment re HAVE_LOCALE_NULL in > gnulib/lib/localename-unsafe.c.
Not sure I understand which comment you alluded to and how it answers my questions, so let me ask directly: are you saying that some systems don't support 'setlocale' with second argument anything other than "C" or the empty string, but do support changing the locale when 'setlocale' is called with empty string as the second argument and the actual locale is specified in the environment?
