Unicode entries on sys.path

Just just at xs4all.nl
Fri Dec 24 08:29:40 EST 2004


In article <cqh3b3$gl9$1 at news6.zwoll1.ov.home.nl>,
 vincent wehren <vincent at visualtrans.de> wrote:

> Just wrote:
> > In article <41CB0D7A.3080107 at v.loewis.de>,
> >  "Martin v. Lowis" <martin at v.loewis.de> wrote:
> > 
> > 
> >>>Hm, maybe more a windows question than a python question...
> >>
> >>The real question here is: why does Python not support arbitrary
> >>Unicode strings on sys.path? It could, in principle, atleast on
> >>Windows NT+ (and also on OSX). Patches are welcome.
> > 
> > 
> > Works for me on OSX 10.3.6, as it should: prior to using the sys.path 
> > entry, a unicode string is encoded with Py_FileSystemDefaultEncoding. 
> 
> For this conversion "mbcs" will be used on Windows machines, implying 
> that such conversions are made using the current system Ansi codepage.
> (As a matter of interest: What is this on OSX?).

UTF-8.

Just



More information about the Python-list mailing list