Back out fix for issue #13886; it introduced a new bug in interactive readline use.

This commit is contained in:
Nadeem Vawda 2013-02-02 20:29:39 +01:00
commit 56265564ff
3 changed files with 1 additions and 12 deletions

View file

@ -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) {