[issue13247] under Windows, os.path.abspath returns non-ASCII bytes paths as question marks

Martin v. Löwis report at bugs.python.org
Sun Jun 22 09:27:25 CEST 2014


Martin v. Löwis added the comment:

I'm -1 on the patch. The string currently returned might be useless, but the fundamental problem is that using bytes for filenames on Windows just isn't sufficient for all cases. Microsoft has chosen to return question marks in the API, and Python should return them as the system vendor did.

Another alternative would be to switch to UTF-8 as the file system encoding on Windows, but that change might be too incompatible.

----------
nosy: +loewis

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


More information about the Python-bugs-list mailing list