Message267025
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. |
|
Date |
User |
Action |
Args |
2016-06-03 02:32:18 | davispuh | set | recipients:
+ davispuh, paul.moore, vstinner, tim.golden, ezio.melotti, martin.panter, zach.ware, eryksun, steve.dower |
2016-06-03 02:32:18 | davispuh | set | messageid: <1464921138.27.0.337598510427.issue27179@psf.upfronthosting.co.za> |
2016-06-03 02:32:18 | davispuh | link | issue27179 messages |
2016-06-03 02:32:17 | davispuh | create | |
|