This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients alexandre.vassalotti, christian.heimes, gvanrossum
Date 2007-10-14.03:06:46
SpamBayes Score 0.00065234024
Marked as misclassified No
Message-id <471187B9.8050502@cheimes.de>
In-reply-to <ca471dc20710131915h50bf0c67uca47067d2e4c3136@mail.gmail.com>
Content
Guido van Rossum wrote:
> Guido van Rossum added the comment:
> 
> Crys, is this OK with you?

Alexandre's mangle loop doesn't do the same job as mine. Chars like _
and - aren't removed from the encoding name and the if clauses don't
catch for example UTF-8 or ISO-8859-1 only UTF8 or ISO8859-1. Also he
has overseen a PyString_Check in the code repr function.

I'm working on a better mangler and I believe that I can make
Py_FilesystemEncoding available much earlier in Py_InitializeEx().

*after some debugging*

I fear that we are on the wrong path. Py_FileSystemEncoding is set
*much* later in the boot strapping process unless its value is hard
coded (Win32 and Apple only). Any attempt to get the right codec or even
a normalized name without the codecs package is going to extremely hard.

We have to get the codecs up and Py_FileSystemEncoding before we can
decode the filenames. :( I think that the problem needs much more
attention and a proper fix.

Christian
History
Date User Action Args
2007-10-14 03:06:47christian.heimessetspambayes_score: 0.00065234 -> 0.00065234024
recipients: + christian.heimes, gvanrossum, alexandre.vassalotti
2007-10-14 03:06:47christian.heimeslinkissue1272 messages
2007-10-14 03:06:46christian.heimescreate