[issue28758] UnicodeDecodeError: 'gbk' codec can't decode byte 0xab in position 74: illegal multibyte sequence

2016-11-26 Thread Steve Dower
Steve Dower added the comment: Unless the reporter comes back with more information, I'll assume it's not a bug. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue28758] UnicodeDecodeError: 'gbk' codec can't decode byte 0xab in position 74: illegal multibyte sequence

2016-11-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: So, does there appear to be a Python bug to fix or should this be closed? -- ___ Python tracker ___

[issue28758] UnicodeDecodeError: 'gbk' codec can't decode byte 0xab in position 74: illegal multibyte sequence

2016-11-25 Thread Steve Dower
Steve Dower added the comment: For something as low level as os.popen you should read bytes and decode them manually with the correct encoding. If you use subprocess.Popen instead you can specify encoding="utf-8" in the call (on 3.6). Unfortunately, it's a very bad idea to rely on the default

[issue28758] UnicodeDecodeError: 'gbk' codec can't decode byte 0xab in position 74: illegal multibyte sequence

2016-11-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't see what this has to do with Python. Perhaps out Windows experts can, or can ask for more info. The last I knew, code page 65001 was buggy, but that is not a Python issue. -- components: +Windows nosy: +paul.moore, steve.dower, terry.reedy,

[issue28758] UnicodeDecodeError: 'gbk' codec can't decode byte 0xab in position 74: illegal multibyte sequence

2016-11-20 Thread dontbugme
New submission from dontbugme: you can see https://github.com/mintty/mintty/issues/609 os.popen('chcp 65001 && ' + JAVA + ' -jar ' + CHECKSTYLE_JAR + ' -c ' + CHECKSTYLE_XML + ' "%s/%s"' % (COMMIT_TEMP_DIT, changed)).read() -- messages: 281322 nosy: dontbugme priority: normal severity: