This is the mail archive of the
cygwin
mailing list for the Cygwin project.
suggestion (was Re: 1.7.7: Localization does not follow the language of the OS)
- From: Cyrille Lefevre <cyrille dot lefevre-lists at laposte dot net>
- To: cygwin at cygwin dot com
- Date: Wed, 12 Jan 2011 01:50:17 +0100
- Subject: suggestion (was Re: 1.7.7: Localization does not follow the language of the OS)
- References: <44682.83.86.0.251.1294773608.squirrel@lavabit.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.Lefevre-lists@laposte.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