[issue3187] os.listdir can return byte strings

STINNER Victor report at bugs.python.org
Sat Sep 27 16:50:30 CEST 2008


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

getcwd() fails with "NOT FOUNT" (not foun*d*?) if the current 
directory filename can't be converted to unicode (str type). Here is a 
patch to fallback to bytes if creation of the unicode failed.

Added file: http://bugs.python.org/file11632/getcwd_bytes.patch

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


More information about the Python-bugs-list mailing list