[issue22862] os.walk fails on undecodable filenames
STINNER Victor
report at bugs.python.org
Thu Nov 13 15:57:11 CET 2014
STINNER Victor added the comment:
> 1) Is not yet possible for me unfortunately, some libraries I require are not yet available for Python 3 (but in the long run, this would be my preferred solution)
I'm curious, which libraries?
Oh, I forgot to say that it's not possible to fix this issue in Python 2. Backporting the PEP 383 in Python 2 requires deep changes in the Unicode machinery, starting by the UTF-8 codec. Currently, the UTF-8 encoder encodes surrogates which violates Unicode standard and makes impossible to use this codec with the surrogateescape error handler.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22862>
_______________________________________
More information about the Python-bugs-list
mailing list