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 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 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 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 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/