STINNER Victor <[email protected]> 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 <[email protected]>
<http://bugs.python.org/issue12801>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to