X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 	tests=AWL,BAYES_00,J_CHICKENPOX_83,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49D4F82E.7050201@users.sourceforge.net>
Date: Thu, 02 Apr 2009 12:38:54 -0500
From: "Yaakov (Cygwin/X)" <yselkowitz@users.sourceforge.net>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: [1.7] codepage:utf removal and python
References: <49D3EB8D.3040802@acm.org> <20090402084037.GA15006@calimero.vinschen.de>
In-Reply-To: <20090402084037.GA15006@calimero.vinschen.de>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Corinna Vinschen wrote:
> And it works as designed in your above testcase.
> 
> I tested with a filename containing a Euro sign (Unicode 0x20ac), in
> HTML speak "qq&euro;".  Cygwin converted it to "qq\016\342\202\254"
> 
> The strace looks perfectly normal.  I have no idea what python complains
> about!

Having already rebuilt python for cygwin-1.7, gcc-4.3, and tcl/tk-8.5, I
built and ran your C code, then:

$ export LANG=en_CA.UTF-8
$ python -c "import os; print os.listdir('.')"
[..., 'qq\xe2\x82\xac', ...]


Yaakov
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAknU+C4ACgkQpiWmPGlmQSNlfQCfbXfycxkM/kiW6kpjYqt+U7FG
ivoAoNAmqrk83LWkxOOQ+kbp+4dl4xGT
=u/R7
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

