public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)
@ 2011-04-03  7:27 Frédéric Bron
  2011-04-03  7:53 ` Frédéric Bron
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Frédéric Bron @ 2011-04-03  7:27 UTC (permalink / raw)
  To: cygwin

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.exe -"):
-bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)

The warning remains if .bashrc and .bash_profile are empty.
For some reason, even if I do not set it, I have LANG=FR.

I have also tried to add:
export LANG="C.UTF-8"
and/or
export LC_ALL="C.UTF-8"
in .bashrc but it does not change anything.

This worked fine with 1.7.8 with export LC_ALL="C.UTF-8" in .bashrc.

Thanks,

Frédéric

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)
  2011-04-03  7:27 [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR) Frédéric Bron
@ 2011-04-03  7:53 ` Frédéric Bron
  2011-04-03  7:56 ` Frédéric Bron
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 11+ messages in thread
From: Frédéric Bron @ 2011-04-03  7:53 UTC (permalink / raw)
  To: cygwin

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.exe -"):
-bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)

The warning remains if .bashrc and .bash_profile are empty.
For some reason, even if I do not set it, I have LANG=FR.

I have also tried to add:
export LANG="C.UTF-8"
and/or
export LC_ALL="C.UTF-8"
in .bashrc but it does not change anything.

This worked fine with 1.7.8 with export LC_ALL="C.UTF-8" in .bashrc.

Thanks,

Frédéric

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)
  2011-04-03  7:27 [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR) Frédéric Bron
  2011-04-03  7:53 ` Frédéric Bron
@ 2011-04-03  7:56 ` Frédéric Bron
  2011-04-04  0:34 ` Frédéric Bron
  2011-04-04  4:41 ` Andy Koppe
  3 siblings, 0 replies; 11+ messages in thread
From: Frédéric Bron @ 2011-04-03  7:56 UTC (permalink / raw)
  To: cygwin

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.exe -"):
-bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)

The warning remains if .bashrc and .bash_profile are empty.
For some reason, even if I do not set it, I have LANG=FR.

I have also tried to add:
export LANG="C.UTF-8"
and/or
export LC_ALL="C.UTF-8"
in .bashrc but it does not change anything.

This worked fine with 1.7.8 with export LC_ALL="C.UTF-8" in .bashrc.

Thanks,

Frédéric

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)
  2011-04-03  7:27 [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR) Frédéric Bron
  2011-04-03  7:53 ` Frédéric Bron
  2011-04-03  7:56 ` Frédéric Bron
@ 2011-04-04  0:34 ` Frédéric Bron
  2011-04-04  4:41 ` Andy Koppe
  3 siblings, 0 replies; 11+ messages in thread
From: Frédéric Bron @ 2011-04-04  0:34 UTC (permalink / raw)
  To: cygwin

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.exe -"):
-bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)

The warning remains if .bashrc and .bash_profile are empty.
For some reason, even if I do not set it, I have LANG=FR.

I have also tried to add:
export LANG="C.UTF-8"
and/or
export LC_ALL="C.UTF-8"
in .bashrc but it does not change anything.

This worked fine with 1.7.8 with export LC_ALL="C.UTF-8" in .bashrc.

Thanks,

Frédéric

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)
  2011-04-03  7:27 [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR) Frédéric Bron
                   ` (2 preceding siblings ...)
  2011-04-04  0:34 ` Frédéric Bron
@ 2011-04-04  4:41 ` Andy Koppe
  2011-04-04  5:45   ` Frédéric Bron
  3 siblings, 1 reply; 11+ messages in thread
From: Andy Koppe @ 2011-04-04  4:41 UTC (permalink / raw)
  To: cygwin

2011/4/3 Frédéric 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.exe -"):
> -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=FR.
>
> I have also tried to add:
> export LANG="C.UTF-8"
> and/or
> export LC_ALL="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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)
  2011-04-04  4:41 ` Andy Koppe
@ 2011-04-04  5:45   ` Frédéric Bron
  2011-04-04  6:03     ` Andy Koppe
  0 siblings, 1 reply; 11+ messages in thread
From: Frédéric Bron @ 2011-04-04  5:45 UTC (permalink / raw)
  To: cygwin

>> I now get this message when starting mintty ("C:\cygwin-1.7\bin\mintty.exe -"):
>> -bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)
>
> Check the locale setting on the Text page of mintty's options dialog.

It was empty. That now works fine. Thank you. I wonder why it was
working fine with 1.7.8...

Frédéric

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)
  2011-04-04  5:45   ` Frédéric Bron
@ 2011-04-04  6:03     ` Andy Koppe
  2011-04-05 20:50       ` Frédéric Bron
  0 siblings, 1 reply; 11+ messages in thread
From: Andy Koppe @ 2011-04-04  6:03 UTC (permalink / raw)
  To: cygwin

On Monday, 4 April 2011, Frédéric Bron wrote:
>>> I now get this message when starting mintty ("C:\cygwin-1.7\bin\mintty.exe -"):
>>> -bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)
>>
>> Check the locale setting on the Text page of mintty's options dialog.
>
> It was empty.

Which is the default, in which case mintty uses the locale set in its
environment, or Cygwin's default locale if nothing is set. So this
probably means that something has set LANG to 'FR' in your Windows
environment. You could try confirming that in a Command Prompt.

> That now works fine.

You mean after setting the locale in the mintty options?

> Thank you.

You're welcome.

> I wonder why it was working fine with 1.7.8...

I don't think it's anything to do with the update. There's been no
relevant change, and there's no good reason why Cygwin would set a
locale like that. A valid one would be 'fr_FR'. I'd suspect some other
software you installed or updated around the same time. Another Unix
environment perhaps?

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)
  2011-04-04  6:03     ` Andy Koppe
@ 2011-04-05 20:50       ` Frédéric Bron
  2011-04-07  8:43         ` Andy Koppe
  0 siblings, 1 reply; 11+ messages in thread
From: Frédéric Bron @ 2011-04-05 20:50 UTC (permalink / raw)
  To: cygwin

>> That now works fine.
>
> You mean after setting the locale in the mintty options?

Yes

> I don't think it's anything to do with the update. There's been no
> relevant change, and there's no good reason why Cygwin would set a
> locale like that. A valid one would be 'fr_FR'. I'd suspect some other
> software you installed or updated around the same time. Another Unix
> environment perhaps?

Never mind. It is not working fine.
Thanks,

Frédéric

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)
  2011-04-05 20:50       ` Frédéric Bron
@ 2011-04-07  8:43         ` Andy Koppe
  2011-12-05 12:05           ` e.vacchi
  0 siblings, 1 reply; 11+ messages in thread
From: Andy Koppe @ 2011-04-07  8:43 UTC (permalink / raw)
  To: cygwin

2011/4/5 Frédéric Bron:
>> You mean after setting the locale in the mintty options?
>
> Yes
>
>> I don't think it's anything to do with the update. There's been no
>> relevant change, and there's no good reason why Cygwin would set a
>> locale like that. A valid one would be 'fr_FR'. I'd suspect some other
>> software you installed or updated around the same time. Another Unix
>> environment perhaps?
>
> Never mind. It is not working fine.

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.

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)
  2011-04-07  8:43         ` Andy Koppe
@ 2011-12-05 12:05           ` e.vacchi
  2011-12-05 12:27             ` Corinna Vinschen
  0 siblings, 1 reply; 11+ messages in thread
From: e.vacchi @ 2011-12-05 12:05 UTC (permalink / raw)
  To: cygwin

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




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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR)
  2011-12-05 12:05           ` e.vacchi
@ 2011-12-05 12:27             ` Corinna Vinschen
  0 siblings, 0 replies; 11+ messages in thread
From: Corinna Vinschen @ 2011-12-05 12:27 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-12-05 12:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-03  7:27 [1.7.9] bash: warning: setlocale: LC_COLLATE: cannot change locale (FR) Frédéric Bron
2011-04-03  7:53 ` Frédéric Bron
2011-04-03  7:56 ` Frédéric Bron
2011-04-04  0:34 ` Frédéric Bron
2011-04-04  4:41 ` Andy Koppe
2011-04-04  5:45   ` Frédéric Bron
2011-04-04  6:03     ` Andy Koppe
2011-04-05 20:50       ` Frédéric Bron
2011-04-07  8:43         ` Andy Koppe
2011-12-05 12:05           ` e.vacchi
2011-12-05 12:27             ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).