[issue9820] Windows : os.listdir(b'.') doesn't raise an errorfor unencodablefilenames

STINNER Victor report at bugs.python.org
Mon Sep 13 21:11:28 CEST 2010

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

- ignore unencodable filenames is not a good idea
- raise an error on unencodable filenames breaks backward compatibility
- I don't think that emit a warning will change anything

Even if I don't like mbcs+replace (current behaviour of os.listdir(bytes)), I now agree that it is the less worst solution. I close this issue as invalid.

resolution:  -> invalid
status: open -> closed

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list