X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SARE_FREE_WEBM_LAPOSTE,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <4D2CFAC9.6040706@laposte.net> Date: Wed, 12 Jan 2011 01:50:17 +0100 From: Cyrille Lefevre User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: 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> In-Reply-To: <44682.83.86.0.251.1294773608.squirrel@lavabit.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-me-spamlevel: not-spam X-me-spamrating: 40.000000 X-me-spamcause: OK, (0)(0000)gggruggvucftvghtrhhoucdtuddrfedutddrtdejucetggdotefuucfrrhhofhhilhgvmecuoehnohhnvgeqnecuuegrihhlohhuthemuceftddtnecu X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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 read LocaleName < '/proc/registry/HKEY_CURRENT_USER/Control Panel/International/LocaleName' case ${LocaleName} in *-*) export LANG=${LocaleName%-*}_${LocaleName#*-}.UTF-8 *) export LANG=C.UTF-8 ;; esac unset LocalName Regards, Cyrille Lefevre -- mailto:Cyrille DOT Lefevre-lists AT laposte DOT net -- 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