[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
- Re: cannot compile under cygwin because of gnulib/uninorm, (continued)
- Re: cannot compile under cygwin because of gnulib/uninorm, Bruno Haible, 2024/12/04
- Re: cannot compile under cygwin because of gnulib/uninorm, Brian Inglis, 2024/12/04
- Re: gettext binaries for Cygwin, Bruno Haible, 2024/12/04
- Re: gettext binaries for Cygwin, Brian Inglis, 2024/12/04
- Re: gettext binaries for Cygwin, Bruno Haible, 2024/12/04
- Re: gettext binaries for Cygwin, Brian Inglis, 2024/12/04
- Re: gettext binaries for Cygwin, Bruno Haible, 2024/12/04
- Re: gettext binaries for Cygwin, Brian Inglis, 2024/12/04
- Re: gettext binaries for Cygwin, Bruno Haible, 2024/12/04
- Re: gettext binaries for Cygwin, Brian . Inglis, 2024/12/04
- Re: gettext binaries for Cygwin,
Bruno Haible <=
- Re: gettext binaries for Cygwin, Brian . Inglis, 2024/12/05
- Re: gettext binaries for Cygwin, Denis Excoffier, 2024/12/05
- Re: gettext binaries for Cygwin, address@hidden, 2024/12/06
- Re: gettext binaries for Cygwin, Denis Excoffier, 2024/12/04
- Re: gettext binaries for Cygwin, Bruno Haible, 2024/12/04
- Re: gettext binaries for Cygwin, Brian Inglis, 2024/12/07
Re: cannot compile under cygwin because of gnulib/uninorm, Denis Excoffier, 2024/12/04