bug-gnulib
[Top][All Lists]
Advanced

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

Re: Default Windows locale for localename.c


From: lrn1986
Subject: Re: Default Windows locale for localename.c
Date: Thu, 15 Mar 2018 20:01:35 +0300
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:59.0) Gecko/20100101 Thunderbird/59.0

On 15.03.2018 19:56, Eli Zaretskii wrote:
Cc: address@hidden
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 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.


gettext (or any other program) calls gnulib gl_locale_name() with LC_MESSAGES, which calls gnulib gl_locale_name_thread() with LC_MESSAGES, which does not call CRT setlocale() with LC_MESSAGES, because it shouldn't be calling setlocale with LC_MESSAGES on MS-Windows. So that's not an issue here.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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