X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Wed, 12 Jan 2011 10:59:07 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: suggestion (was Re: 1.7.7: Localization does not follow the language of the OS) Message-ID: <20110112095907.GC6353@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4D2CFAC9.6040706@laposte.net> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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` or better export LANG=`locale -uU` setenv LANG `locale -uU` export LANG=`locale -sU setenv LANG `locale -sU` This has been discussed a couple of months ago and the decision was to set the lang to C.UTF-8 by default on all systems and everything else is up to the user. I'm too lazy to search but you'll find lengthy discussions in the archives. So, anyway, if you want your application running with a certain locale, set $LANG. If you want the Windows user or system locale, use `locale -u[U]` or `locale -s[U]`. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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