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 vstinner
Recipients amaury.forgeotdarc, georg.brandl, ronaldoussoren, vstinner
Date 2011-01-20.22:10:46
SpamBayes Score 2.6579066e-06
Marked as misclassified No
Message-id <1295561440.29835.4.camel@marge>
In-reply-to <1295547338.27.0.21082027523.issue10955@psf.upfronthosting.co.za>
Content
Le jeudi 20 janvier 2011 à 18:15 +0000, Amaury Forgeot d'Arc a écrit :
> But if the zip file contains the stdlib *and* some other custom
> modules with cp437 names, the whole operation will fail; it can be the
> case with py2exe applications.

The ASCII fallback is only used before the codec registry is loaded. I
suppose that you can use non-ASCII module names in the same ZIP file: if
you load them after that the codec registry is ready, it should work.

I copied the fix from Objects/unicodeobject.c which has also a similar
bootstrap "hack" to encode/decode filenames.
History
Date User Action Args
2011-01-20 22:10:48vstinnersetrecipients: + vstinner, georg.brandl, ronaldoussoren, amaury.forgeotdarc
2011-01-20 22:10:46vstinnerlinkissue10955 messages
2011-01-20 22:10:46vstinnercreate