This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steve.dower
Recipients dontbugme, paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
Date 2016-11-26.02:11:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1480126276.12.0.466545801241.issue28758@psf.upfronthosting.co.za>
In-reply-to
Content
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 encoding for inter-process communication, but it's also impossible for us to change the defaults without breaking existing code unnecessarily.

I'm not particularly aware of code-page 65001 itself being buggy, but there are certainly issues in the ANSI-mode console when you select it. On 3.6 we use the Unicode APIs directly for the console, but that has no impact on pipes or redirected handles, which is what this issue is encountering.
History
Date User Action Args
2016-11-26 02:11:16steve.dowersetrecipients: + steve.dower, terry.reedy, paul.moore, tim.golden, dontbugme, zach.ware
2016-11-26 02:11:16steve.dowersetmessageid: <1480126276.12.0.466545801241.issue28758@psf.upfronthosting.co.za>
2016-11-26 02:11:16steve.dowerlinkissue28758 messages
2016-11-26 02:11:14steve.dowercreate