• Victor Stinner's avatar
    Issue #9630: Redecode filenames when setting the filesystem encoding · 82deba1f
    Victor Stinner authored
    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.
    82deba1f
unicodeobject.c 303 KB