[issue35140] encoding problem: coding:gbk cause syntaxError

2018-11-11 Thread Emmanuel Arias
Emmanuel Arias added the comment: I can not reproduce this issue on my Debian9. -- nosy: +eamanu ___ Python tracker ___ ___ Python-

[issue35140] encoding problem: coding:gbk cause syntaxError

2018-11-11 Thread Steve Dower
Steve Dower added the comment: Yes, seems like we should be opening the file in binary mode, though I haven't tried it. The CRT's interpretation of text mode really isn't compatible with Python's own interpretation of text mode, and chaining them makes even less sense. -- _

[issue35140] encoding problem: coding:gbk cause syntaxError

2018-11-10 Thread Ma Lin
Ma Lin added the comment: I debugged, this is a duplicate of issue 20844 and issue 27797. Eryk Sun analyzed this detailedly, it's a problem of Windows CRT. -- versions: +Python 3.5, Python 3.6, Python 3.8 ___ Python tracker

[issue35140] encoding problem: coding:gbk cause syntaxError

2018-11-02 Thread Windson Yang
Change by Windson Yang : -- title: encoding problem: gbk -> encoding problem: coding:gbk cause syntaxError ___ Python tracker ___ __