[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Default Windows locale for localename.c

From: Eli Zaretskii
Subject: Re: Default Windows locale for localename.c
Date: Thu, 15 Mar 2018 18:56:59 +0200

> Cc: address@hidden
> From: address@hidden
> Date: Thu, 15 Mar 2018 19:45:11 +0300
> >    setlocale (LC_ALL, "");
> > 
> > I expect it to return "English_United States.1251" in all the
> > categories.
> Nope, after i call setlocale (LC_ALL, ""), all subsequent calls to 
> setlocale(category, NULL) return "Russian_Russia.1251".

That's really strange, given the description of how you configured
your system.

> > If that's what happens in your case, then the only
> > problem with gettext is that it doesn't call gl_locale_name, but
> > instead calls gl_locale_name_posix directly.  I'd say it's a gettext
> > bug.
> gl_locale_name() calls gl_locale_name_thread(), which returns the result of 
> setlocale(category, NULL) for all supported categories (i.e. for everything 
> except LC_MESSAGES; it returns NULL for those). If it returns NULL, then the 
> rest of it is the same as what gettext does (posix, then default).

Gettext (or any other program) shouldn't be calling setlocale with
LC_MESSAGES on MS-Windows.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]