This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 5 Dec 2011 13:26:20 +0100
- Subject: Re: [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)
- References: <BANLkTikDGagEMZpPm8D6EXu55s8uDKrKnA@mail.gmail.com> <BANLkTi=6Juoc4oq4Lj5muLE1=F81BF3dng@mail.gmail.com> <BANLkTinukoD7jdkNF0giqK0MaULHuSLyjw@mail.gmail.com> <BANLkTinzfSyWjiDpaVqg=4htHmWtnN-kig@mail.gmail.com> <BANLkTi=Zgr3uogyuuSCRP7YJKni1bWdqaA@mail.gmail.com> <BANLkTi=jGnwDnVrbh_BFAhCBDMBwjOnJPQ@mail.gmail.com> <loom.20111205T123617-140@post.gmane.org>
- Reply-to: cygwin at cygwin dot com
On Dec 5 11:37, e.vacchi wrote:
> Andy Koppe <andy.koppe <at> gmail.com> writes:
>
>
> > I assume s/not/now/, but in any case it would still be helpful if you
> > could confirm that the LANG=FR setting did come from the Windows
> > environment, e.g. using the 'set' command in a Command Prompt. Even
> > better if you had an idea where the setting came from, in case others
> > stumble across this in future.
>
> Windows does set LANG= to your locale; in my case %LANG% is IT
Windows does not set $LANG by default, nor does it set it when you
change your regional options. There must be some specific software
component which thought it a good idea to set LANG. Either way, neither
"FR" nor "IT" are POSIX compatible locale settings.
You can workaround the issue by either unsetting LANG before calling
bash, setting it to a POSIX compatible value, or by utilizing the
/usr/share/locale/locale.alias file. Just add a line like this to
locale.alias:
IT it_IT.utf8
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