This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [1.7] codepage:utf removal and python


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]