Message126654
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. |
|
Date |
User |
Action |
Args |
2011-01-20 22:10:48 | vstinner | set | recipients:
+ vstinner, georg.brandl, ronaldoussoren, amaury.forgeotdarc |
2011-01-20 22:10:46 | vstinner | link | issue10955 messages |
2011-01-20 22:10:46 | vstinner | create | |
|