On 15.03.2018 19:57, LRN wrote:
On 15.03.2018 11:40, Eli Zaretskii wrote:
From: LRN
Cc: Eli Zaretskii
Date: Wed, 14 Mar 2018 01:26:27 +0300
For English UI and Russian format setting:
GetUserDefaultUILanguage() returns:
0x409 (primary ID 0x9 sub ID 0x1 (meaning en_US)).
On 15.03.2018 19:56, Eli Zaretskii wrote:
Cc: bug-gnulib@gnu.org
From: LRN
Date: Thu, 15 Mar 2018 19:45:11 +0300
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
> Cc: bug-gnulib@gnu.org
> From: lrn1...@gmail.com
> 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
>
On 15.03.2018 11:40, Eli Zaretskii wrote:
From: lrn1...@gmail.com
Cc: Eli Zaretskii
Date: Wed, 14 Mar 2018 01:26:27 +0300
For English UI and Russian format setting:
GetUserDefaultUILanguage() returns:
0x409 (primary ID 0x9 sub ID 0x1 (meaning en_US)).
On 15.03.2018 11:37, Eli Zaretskii wrote:
Cc: Eli Zaretskii
From: LRN
Date: Tue, 13 Mar 2018 23:45:08 +0300
And what does setlocale(LC_ALL,NULL) return on that system?
It returns "C".
Really? That's strange.
Sorry, I guess I didn't make myself clear enough. Every C program
starts with
> From: lrn1...@gmail.com
> Cc: Eli Zaretskii
> Date: Wed, 14 Mar 2018 01:26:27 +0300
>
> For English UI and Russian format setting:
>
> GetUserDefaultUILanguage() returns:
> 0x409 (primary ID 0x9 sub ID 0x1 (meaning en_US)).
>
> GetUserPreferredUILanguages() returns:
> "0409"
> Cc: Eli Zaretskii
> From: lrn1...@gmail.com
> Date: Tue, 13 Mar 2018 23:45:08 +0300
>
> >>> And what does setlocale(LC_ALL,NULL) return on that system?
> >>>
> >>
> >> It returns "C".
> >
> > Really? That's strange.
Sorry, I guess I didn't make myself clear enough. Every C
On 13.03.2018 19:11, LRN wrote:
MSDN [1] explains the multiple language
situation in Vista+ (which is what we should aim to use; XP can just keep using
GetThreadLocale() for all i care; that said, GetUserDefaultUILanguage() is
claimed to be 2000+, so we could use that) and that
On 13.03.2018 20:06, Eli Zaretskii wrote:
Cc: Eli Zaretskii
From: LRN
Date: Tue, 13 Mar 2018 19:11:35 +0300
And what does setlocale(LC_ALL,NULL) return on that system?
It returns "C".
Really? That's strange. And what does GetACP return?
1251. Most likely because this is what "Current
> Cc: Eli Zaretskii
> From: lrn1...@gmail.com
> Date: Tue, 13 Mar 2018 19:11:35 +0300
>
> > This shows that guess_category_value calls gl_locale_name_posix
> > directly, instead of calling gl_locale_name. So the question now
> > becomes why does gettext do that, and whether it
On 12.03.2018 23:50, Eli Zaretskii wrote:
From: LRN
Date: Mon, 12 Mar 2018 23:23:21 +0300
const char *
gl_locale_name (int category, const char *categoryname)
{
const char *retval;
retval = gl_locale_name_thread (category, categoryname);
if (retval != NULL)
[Please CC me on the responses, as I'm not subscribed to this list.]
> From: lrn1...@gmail.com
> Date: Mon, 12 Mar 2018 23:23:21 +0300
>
> >const char *
> >gl_locale_name (int category, const char *categoryname)
> >{
> > const char *retval;
> >
> > retval =
On 12.03.2018 20:20, Eli Zaretskii wrote:
From: lrn
Date: Fri, 9 Mar 2018 01:51:44 +0300
Currently localename.c (which is used by gettext, so it's really everywhere)
calls GetThreadLocale() to get current locale identifier (if LC_* or LANG are
not set).
That's not entirely accurate, at least
> From: lrn1...@gmail.com
> Date: Fri, 9 Mar 2018 01:51:44 +0300
>
> Currently localename.c (which is used by gettext, so it's really everywhere)
> calls GetThreadLocale() to get current locale identifier (if LC_* or LANG are
> not set).
That's not entirely accurate, at least not wrt the
Currently localename.c (which is used by gettext, so it's really everywhere)
calls GetThreadLocale() to get current locale identifier (if LC_* or LANG are
not set).
One problem with that is that GetThreadLocale() is unaffected by setlocale()
(already discussed in "Fix libunistring in
15 matches
Mail list logo