X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Wed, 12 Jan 2011 22:11:45 +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: <20110112211145.GD25178@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <42031 DOT 83 DOT 86 DOT 0 DOT 251 DOT 1294854455 DOT squirrel AT lavabit DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <42031.83.86.0.251.1294854455.squirrel@lavabit.com> 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 18:47, cornwarecjp AT lavabit DOT com wrote: > > 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` > > Thanks for this suggestion. I tested the locale command, and it does > what you describe. > > Unfortunately, the people who download my application usually don't have > Cygwin, so I'll have to distribute locale.exe with my application. Also, > this trick will add extra complexity to my software, which is (AFAIK) not > necessary on other UNIX platforms. > > Despite these disadvantages, I think this is a useful solution for me. > locale.exe is only 18kB; I'll just check the license again to see if this > distributing is OK. locale.exe is Cygwin licensed, and it's a Cygwin application, so you would have to distribute the Cygwin DLL as well. Plus the Cygwin source codes (which include the locale.exe source codes), to adhere with the GPL. 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