[issue13247] os.path.abspath returns unicode paths as question marks

STINNER Victor report at bugs.python.org
Wed Oct 26 12:10:27 CEST 2011


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

> Yuval Greenfield <ubershmekel at gmail.com> added the comment:
> Another option btw is to use utf-16

UTF-8, UTF-16 or any encoding different than the ANSI code page are not an 
option. The Windows bytes API expect filenames encoded to the ANSI code page. 
os.listdir() would raise an error (unknown directory) or return an empty list 
instead of the content of the directory.

----------

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


More information about the Python-bugs-list mailing list