[issue16656] os.walk ignores international dirs on Windows

Amaury Forgeot d'Arc report at bugs.python.org
Wed Dec 12 13:28:20 CET 2012


Amaury Forgeot d'Arc added the comment:

So, it seems that os.walk() and os.listdir() work correctly with Python3.3, but print(u'Русское имя') fails because the terminal encoding is cp437.

See issue1602 for the print issue.
As a quick workaround, try to set PYTHONIOENCODING=cp437:backslashreplace as suggested in http://wiki.python.org/moin/PrintFails

If nothing is wrong with os.walk() and os.listdir(), this issue should be closed.

----------

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


More information about the Python-bugs-list mailing list