[issue9425] Rewrite import machinery to work with unicode paths
STINNER Victor
report at bugs.python.org
Tue Aug 10 18:56:37 CEST 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
_PyFile_FromFdUnicode.patch: create _PyFile_FromFdUnicode() function. It will be used in import.c to open a file using an unicode filename.
For _PyFile_FromFd(), I kept the previous behaviour: clear the exception on PyUnicode_DecodeFSDefault() error.
For fileobject.h: I used the same style than unicodeobject.h, one argument per line with their name. I prefer to write the argument name because the header can be used as a quick documentation.
As _PyFile_FromFd(), name is optional (can be NULL) for _PyFile_FromFdUnicode().
----------
Added file: http://bugs.python.org/file18469/_PyFile_FromFdUnicode.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9425>
_______________________________________
More information about the Python-bugs-list
mailing list