STINNER Victor victor.stin...@haypocalc.com added the comment:
Fixed by r87518.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10778
___
New submission from STINNER Victor victor.stin...@haypocalc.com:
decoding_fgets() decodes the input filename from UTF-8 whereas the filename is
encoded to the filesystem encoding. PyUnicode_DecodeFSDefault() should be used.
decoding_fgets() raises a SyntaxError(Non-UTF-8 code starting with
STINNER Victor victor.stin...@haypocalc.com added the comment:
See also issue #10779 (Change filename encoding to FS encoding in
PyErr_WarnExplicit()).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10778
STINNER Victor victor.stin...@haypocalc.com added the comment:
Oh, ignore indenterror() (inconsistent use of tabs and spaces in indentation)
and, I forgot to remove it. indenterror() is correct.
--
___
Python tracker rep...@bugs.python.org