[issue9820] Windows : os.listdir(b'.') doesn't raise an errorfor unencodablefilenames
STINNER Victor
report at bugs.python.org
Sun Sep 12 22:35:30 CEST 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
> FindFirst/NextFileA will also do some other interesting conversions,
> such as the best-fit conversion (which the "mbcs" code doesn't do
> (anymore?)).
About mbcs, mbcs codec of Python 3.1 is like .encode('mbcs', 'replace') and
.decode('mbcs', 'ignore') of Python 3.2 (see issue #850997). By default
(strict error handler), it now raises errors on undecodable byte sequence and
unencodable character, whereas Python 3.1 just ignores the error handler.
PyUnicode_EncodeFSDefault / PyUnicode_DecodeFSDefault uses the strict error
handler.
I just added a note about mbcs in Doc/whatsnew/3.2.rst: r84750.
----------
title: Windows : os.listdir(b'.') doesn't raise an error for unencodable filenames -> Windows : os.listdir(b'.') doesn't raise an errorfor unencodablefilenames
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9820>
_______________________________________
More information about the Python-bugs-list
mailing list