delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Thu, 2 Apr 2009 19:48:05 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: [1.7] codepage:utf removal and python |
Message-ID: | <20090402174804.GF12738@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <49D3EB8D DOT 3040802 AT acm DOT org> <20090402084037 DOT GA15006 AT calimero DOT vinschen DOT de> <49D4F82E DOT 7050201 AT users DOT sourceforge DOT net> |
MIME-Version: | 1.0 |
In-Reply-To: | <49D4F82E.7050201@users.sourceforge.net> |
User-Agent: | Mutt/1.5.19 (2009-02-20) |
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 |
On Apr 2 12:38, Yaakov S wrote: > -----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€". 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', ...] Uh, so python needs a rebuild for Cygwin to deal with localized pathnames correctly. I assume it's missing to call the conversion functions because they were not available so far. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |