| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <4D2D7D5D.7080800@gmx.de> |
| Date: | Wed, 12 Jan 2011 11:07:25 +0100 |
| From: | Matthias Andree <matthias DOT andree AT gmx DOT de> |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: suggestion (was Re: 1.7.7: Localization does not follow the language of the OS) |
| References: | <44682 DOT 83 DOT 86 DOT 0 DOT 251 DOT 1294773608 DOT squirrel AT lavabit DOT com> <4D2CFAC9 DOT 6040706 AT laposte DOT net> <20110112095907 DOT GC6353 AT calimero DOT vinschen DOT de> |
| In-Reply-To: | <20110112095907.GC6353@calimero.vinschen.de> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.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 |
Am 12.01.2011 10:59, schrieb Corinna Vinschen:
> On Jan 12 01:50, Cyrille Lefevre wrote:
>>
>> Hi
>>
>> an interresting registry entry would be :
>>
>> /proc/registry/HKEY_CURRENT_USER/Control Panel/International/LocaleName
>>
>> in france, under vista, it's fr-FR which is easy to translate to
>> fr_FR.UTF-8...
>>
>> how about to integrate something like this in lang.sh :
>>
>> [ -n "${LC_ALL:-${LC_CTYPE:-$LANG}}" ] && return
>
> The official way to set the locale is to use the locale(1) tool, see the
> User's Guide http://cygwin.com/cygwin-ug-net/using-utils.html#locale
>
> export LANG=`locale -u` setenv LANG `locale -u`
> export LANG=`locale -s` setenv LANG `locale -s`
Everybody using POSIX shell syntax (the left column) should consider using
$(...) command substitution instead of the obsolete backticks `...`. The former
mixes properly with quoting, so to get into the right habit and set the proper
example:
export LANG="$(locale -uU)" # (or -sU for system default locale)
--
Matthias Andree
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |