delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/12/05/07:27:18

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 5 Dec 2011 13:26:20 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)
Message-ID: <20111205122620.GA7523@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <BANLkTikDGagEMZpPm8D6EXu55s8uDKrKnA AT mail DOT gmail DOT com> <BANLkTi=6Juoc4oq4Lj5muLE1=F81BF3dng AT mail DOT gmail DOT com> <BANLkTinukoD7jdkNF0giqK0MaULHuSLyjw AT mail DOT gmail DOT com> <BANLkTinzfSyWjiDpaVqg=4htHmWtnN-kig AT mail DOT gmail DOT com> <BANLkTi=Zgr3uogyuuSCRP7YJKni1bWdqaA AT mail DOT gmail DOT com> <BANLkTi=jGnwDnVrbh_BFAhCBDMBwjOnJPQ AT mail DOT gmail DOT com> <loom DOT 20111205T123617-140 AT post DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <loom.20111205T123617-140@post.gmane.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019