delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/10/09/12:29:36

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4E917965.4070903@math.cas.cz>
References: <4E917965 DOT 4070903 AT math DOT cas DOT cz>
Date: Sun, 9 Oct 2011 17:29:10 +0100
Message-ID: <CAHWeT-aXK79_XUr7rqONTP35FSwO2BzWA9SW0Kyqmg3brrw0cg@mail.gmail.com>
Subject: Re: locale
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p99GTWo6005924

On 9 October 2011 11:37, Jan Kolar wrote:
>
> Re: /cygwin-patches/ Add locale.exe option for querying Windows UI languages
>>
>> Corinna Vinschen-2 wrote in
>> h t t p : old nabble com
>>  Add-locale.exe-option-for-querying-Windows-UI-languages-to32614984.html
>>
>> Therefore, afaics, it would be better if we change locale to use the
>> GetFooDefaultUILanguage functions by default, and we add a modifier
>> (-r/--region?) to switch to LOCALE_FOO_DEFAULT.
>>
>
> Please, could locale follow what is standard and/or usual, that is "
> write information about the current locale environment   "
> how a cygwin-native a program sees it.  Cygwin-native =
> ported-from-unix.
>
> "       When invoked without arguments, locale summarizes the current
> locale environment for each locale category defined  by the LC_*
> environment variables.
> " (man locale  on  Linux)
>
>
> I use
>   ENVIR=value   locale
> (on Unixes) to find out what locale setting will recieve-and-use any
> Program if I call it with
>   ENVIR=value   Program
>
> That is, I expect  locale.exe (without options) to show how standard
> libraries interpret current LOCALE(7) setting, that is what setting is
> obtained from current settings in environment and files.
>
> For example
>
> $ uname
> Linux
>
> $ locale
> LANG=en_US.UTF-8
> LC_CTYPE="en_US"
> LC_NUMERIC="en_US"
> LC_TIME="en_US"
> LC_COLLATE="en_US" ...
>
> # I am not happy now
>
> $ export LC_ALL=cs_CZ
>
> $  locale
> LANG=en_US.UTF-8
> LC_CTYPE="cs_CZ"
> LC_NUMERIC="cs_CZ"
> LC_TIME="cs_CZ"
> LC_COLLATE="cs_CZ" ...

It already does that. This thread is about additional Cygwin-specific
functionality.

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019