cpython: faf5493e6f61 (original) (raw)

Mercurial > cpython

changeset 104386:faf5493e6f61 3.6

Issue #28333: Enables Unicode for ps1/ps2 and input() prompts. (Patch by Eryk Sun) [#28333]

Steve Dower steve.dower@microsoft.com
date Sat, 08 Oct 2016 12🔞16 -0700
parents e6ec01903f6c
children cb62e921bd06 63ceadf8410f
files Misc/NEWS Parser/myreadline.c
diffstat 2 files changed, 26 insertions(+), 4 deletions(-)[+] [-] Misc/NEWS 2 Parser/myreadline.c 28

line wrap: on

line diff

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -213,6 +213,8 @@ Library Windows ------- +- Issue #28333: Enables Unicode for ps1/ps2 and input() prompts +

--- a/Parser/myreadline.c +++ b/Parser/myreadline.c @@ -203,17 +203,37 @@ PyOS_StdioReadline(FILE *sys_stdin, FILE #ifdef MS_WINDOWS if (!Py_LegacyWindowsStdioFlag && sys_stdin == stdin) {

_Py_BEGIN_SUPPRESS_IPH hStdIn = (HANDLE)_get_osfhandle(fileno(sys_stdin));

if (_get_console_type(hStdIn) == 'r') { fflush(sys_stdout);