[issue12801] C realpath not used by os.path.realpath
STINNER Victor
report at bugs.python.org
Wed Aug 24 22:18:44 CEST 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
i12801.patch is not correct: on Windows, you should never encode a filename to bytes. Use PyUnicode_Decode() + _Py_wrealpath(), or a #ifdef (as many other posixmodule functions).
I prefer to reuse _Py_wrealpath because we will have to add special cases: realpath(NULL) and also maybe canonicalize_file_name().
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12801>
_______________________________________
More information about the Python-bugs-list
mailing list