[issue9425] Rewrite import machinery to work with unicode paths

STINNER Victor report at bugs.python.org
Sun Aug 8 15:29:06 CEST 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

nullimporter_unicode.patch: patch NullImporter_init():
 - use GetFileAttributesW() instead of GetFileAttributesA() for the Windows version to be fully Unicode compliant
 - use "O&" format with PyUnicode_FSConverter instead of "es" with Py_FileSystemDefaultEncoding to accept also bytes filenames and support str with surrogates (PEP 383)

----------
Added file: http://bugs.python.org/file18434/nullimporter_unicode.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9425>
_______________________________________


More information about the Python-bugs-list mailing list