[issue3187] os.listdir can return byte strings

Martin v. Löwis report at bugs.python.org
Mon Sep 29 07:12:00 CEST 2008


Martin v. Löwis <martin at v.loewis.de> added the comment:

James Knight points out that UTF-8b can be used to give unambiguous
round-tripping of characters in a UTF-8 locale. So I would like to amend
my previous proposal:
- for a non-UTF-8 encoding, use private-use characters for roundtripping
- if the locale's charset is UTF-8, use UTF-8b as the file system encoding.

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


More information about the Python-bugs-list mailing list