X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Thu, 2 Apr 2009 19:48:05 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: [1.7] codepage:utf removal and python
Message-ID: <20090402174804.GF12738@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <49D3EB8D.3040802@acm.org> <20090402084037.GA15006@calimero.vinschen.de> <49D4F82E.7050201@users.sourceforge.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <49D4F82E.7050201@users.sourceforge.net>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

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&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', ...]

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/

