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 martin.panter
Recipients davispuh, eryksun, ezio.melotti, martin.panter, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2016-06-02.22:46:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464907577.59.0.591258072299.issue27179@psf.upfronthosting.co.za>
In-reply-to
Content
Patch B changes _Py_device_encoding() to accept a file descriptor of 3, which seems wrong to me.

Patch A is like the earlier patch, but calls os.device_encoding(1) instead of relying on sys.stdout, etc. I think this will still fail when the Python parent’s stdout was never open (then fd 1 will be invalid, or used as something else).
History
Date User Action Args
2016-06-02 22:46:17martin.pantersetrecipients: + martin.panter, paul.moore, vstinner, tim.golden, ezio.melotti, zach.ware, eryksun, steve.dower, davispuh
2016-06-02 22:46:17martin.pantersetmessageid: <1464907577.59.0.591258072299.issue27179@psf.upfronthosting.co.za>
2016-06-02 22:46:17martin.panterlinkissue27179 messages
2016-06-02 22:46:17martin.pantercreate