Message383623
I think using Console codepage for stdio is better. But I am afraid about breaking existing code.
How about treating only UTF-8 and leave legacy environment as-is?
* When GetConsoleCP() returns CP_UTF8, use UTF-8 for stdin. Otherwise, use ANSI.
* When GetConsoleOutputCP() returns CP_UTF8, use UTF-8 for stdout. Otherwise, use ANSI.
This will work nice with PowerShell or cmd with `chcp 65001` in most simple cases. |
|
Date |
User |
Action |
Args |
2020-12-22 23:32:20 | methane | set | recipients:
+ methane, paul.moore, vstinner, tim.golden, zach.ware, eryksun, steve.dower, izbyshev, u36959 |
2020-12-22 23:32:20 | methane | set | messageid: <1608679940.47.0.11166462956.issue42707@roundup.psfhosted.org> |
2020-12-22 23:32:20 | methane | link | issue42707 messages |
2020-12-22 23:32:20 | methane | create | |
|