[issue10778] decoding_fgets() (tokenizer.c) decodes the filename from the wrong encoding

2010-12-27 Thread STINNER Victor
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 ___

[issue10778] decoding_fgets() (tokenizer.c) decodes the filename from the wrong encoding

2010-12-26 Thread STINNER Victor
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

[issue10778] decoding_fgets() (tokenizer.c) decodes the filename from the wrong encoding

2010-12-26 Thread STINNER Victor
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

[issue10778] decoding_fgets() (tokenizer.c) decodes the filename from the wrong encoding

2010-12-26 Thread STINNER Victor
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