bug-gettext
[Top][All Lists]
Advanced

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

Re: gettext binaries for Cygwin


From: Bruno Haible
Subject: Re: gettext binaries for Cygwin
Date: Thu, 05 Dec 2024 06:34:23 +0100

Hi Brian,

> Previous discussion that I could find:
> 
> https://cygwin.com/pipermail/cygwin/2016-August/229324.html
> 
> suggests that `locale -iU` might be preferred selection instead of current 
> use 
> of `locale -uU` in /etc/profile.d/lang.sh.

I think that for the POSIX environment variables LC_CTYPE, LC_MESSAGES
(at least), `locale -uU` is the better choice.

Reasons:

  * As can be seen from winsup/utils/locale.cc:
    'i'  ==>  GetLocaleInfoW ((UINT_PTR) GetKeyboardLayout (0) & 0xffff, ...)
    'u'  ==>  GetLocaleInfoW (GetUserDefaultUILanguage (), ...)
    's'  ==>  GetLocaleInfoW (GetSystemDefaultUILanguage (), ...)

  * The POSIX environment variables [1] deal with processing of data inside
    programs, and LC_MESSAGES in particular with "informative and diagnostic
    messages and interactive responses".
    POSIX does not have an environment variable for keyboard input or the
    input method, since that part is implemented by only the X server or
    the kernel (and thus not relevant to programs in general).

Bruno

[1] https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap07.html






reply via email to

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