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 davispuh
Recipients davispuh, eryksun, ezio.melotti, martin.panter, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2016-06-03.02:32:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464921138.27.0.337598510427.issue27179@psf.upfronthosting.co.za>
In-reply-to
Content
if there's no console then os.device_encoding won't fail, it will just return None which means that ANSI codepage will be used like it currently is and so here it doesn't change anything, current behavior stays.
Also like I showed TextIOWrapper already calls device_encoding even if there's no console. And device_encoding doesn't actually use that fd it just checks if it's valid fd and then calls GetConsoleCP/GetConsoleOutputCP to get encoding.
History
Date User Action Args
2016-06-03 02:32:18davispuhsetrecipients: + davispuh, paul.moore, vstinner, tim.golden, ezio.melotti, martin.panter, zach.ware, eryksun, steve.dower
2016-06-03 02:32:18davispuhsetmessageid: <1464921138.27.0.337598510427.issue27179@psf.upfronthosting.co.za>
2016-06-03 02:32:18davispuhlinkissue27179 messages
2016-06-03 02:32:17davispuhcreate