mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Back out fix for issue #13886; it introduced a new bug in interactive readline use.
This commit is contained in:
commit
56265564ff
3 changed files with 1 additions and 12 deletions
|
@ -1063,7 +1063,7 @@ call_readline(FILE *sys_stdin, FILE *sys_stdout, char *prompt)
|
|||
char *saved_locale = strdup(setlocale(LC_CTYPE, NULL));
|
||||
if (!saved_locale)
|
||||
Py_FatalError("not enough memory to save locale");
|
||||
setlocale(LC_CTYPE, "C");
|
||||
setlocale(LC_CTYPE, "");
|
||||
#endif
|
||||
|
||||
if (sys_stdin != rl_instream || sys_stdout != rl_outstream) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue