]> granicus.if.org Git - python/commit
Issue #9630: Redecode filenames when setting the filesystem encoding
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 29 Sep 2010 16:35:47 +0000 (16:35 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 29 Sep 2010 16:35:47 +0000 (16:35 +0000)
commitc39211f51e377919952b139c46e295800cbc2a8d
treeefdb794b06981b5047e699d606b2876e2170b07e
parenta5785b1524074656f0a0ec64e5e5cdb27aa3a356
Issue #9630: Redecode filenames when setting the filesystem encoding

Redecode the filenames of:

 - all modules: __file__ and __path__ attributes
 - all code objects: co_filename attribute
 - sys.path
 - sys.meta_path
 - sys.executable
 - sys.path_importer_cache (keys)

Keep weak references to all code objects until initfsencoding() is called, to
be able to redecode co_filename attribute of all code objects.
Include/code.h
Objects/codeobject.c
Objects/object.c
Objects/unicodeobject.c
Python/pythonrun.c