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: References: 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 To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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