X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <BANLkTikDGagEMZpPm8D6EXu55s8uDKrKnA@mail.gmail.com>
References: <BANLkTikDGagEMZpPm8D6EXu55s8uDKrKnA@mail.gmail.com>
Date: Sun, 3 Apr 2011 08:56:12 +0100
Message-ID: <BANLkTi=6Juoc4oq4Lj5muLE1=F81BF3dng@mail.gmail.com>
Subject: Re: [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

2011/4/3 Fr=C3=A9d=C3=A9ric Bron:
> I have just upgraded to 1.7.9:
> $ uname
> CYGWIN_NT-5.1 VOR-CRV-01660 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin
>
> I now get this message when starting mintty ("C:\cygwin-1.7\bin\mintty.ex=
e -"):
> -bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)

Check the locale setting on the Text page of mintty's options dialog.

> The warning remains if .bashrc and .bash_profile are empty.
> For some reason, even if I do not set it, I have LANG=3DFR.
>
> I have also tried to add:
> export LANG=3D"C.UTF-8"
> and/or
> export LC_ALL=3D"C.UTF-8"
> in .bashrc but it does not change anything.

That's because setting the locale there is too late both for mintty
and for bash.

Andy

--
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

