delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/03/07:12:22

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <d37e30051002030033s930ad8eu711be974c576fec8@mail.gmail.com>
References: <d37e30051002030033s930ad8eu711be974c576fec8 AT mail DOT gmail DOT com>
Date: Wed, 3 Feb 2010 12:12:09 +0000
Message-ID: <416096c61002030412q3f6af12o688d8eaadf70b662@mail.gmail.com>
Subject: Re: Python does not support default locale
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
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

Jurgen Defurne wrote:
> This morning I started python from a new installation 1.7 installation
> and I got the following warning.

Python seems to be ok with C.UTF-8 here:

$ python
Python 2.5.2 (r252:60911, Dec  2 2008, 09:26:14)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.setlocale(locale.LC_ALL,"")
'C.UTF-8'
>>> locale.getlocale()
('C', 'UTF8')


> bzr: warning: unsupported locale setting
> =C2=A0bzr could not set the application locale.
> =C2=A0Although this should be no problem for bzr itself,
> =C2=A0it might cause problems with some plugins.
> =C2=A0To investigate the issue, look at the output
> =C2=A0of the locale(1p) tool available on POSIX systems.
> bzr: warning: unsupported locale setting
> =C2=A0Could not determine what text encoding to use.
> =C2=A0This error usually means your Python interpreter
> =C2=A0doesn't support the locale set by $LANG (C.UTF-8)
> =C2=A0Continuing with ascii encoding.

If you're just starting python, how come you're getting messages from
'bzr'? Please describe the actual steps that produced those warnings.

Also, is bzr connecting to a remote machine? I don't get those
warnings if I just do 'bzr init' locally.


> Setting LC_ALL to C.ISO-8859-1 removed the warning.

Right, so it doesn't seem to be the "C." bit that's causing the issue.
What happens if you set LC_ALL to en_US.UTF-8 instead?

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

- Raw text -


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