diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2013-02-02 19:29:39 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2013-02-02 19:29:39 (GMT) |
commit | 56265564ff43da395d358fcc28803478892a686b (patch) | |
tree | 6799318362db171433509bcf6c67ce34c3ec7397 /Modules/readline.c | |
parent | 231ee4dc9da8d85aceb9ef18aa7197dd0023534e (diff) | |
parent | c27bcbf86316fd45180a8b881c55ed3ac7f9fa50 (diff) | |
download | cpython-56265564ff43da395d358fcc28803478892a686b.zip cpython-56265564ff43da395d358fcc28803478892a686b.tar.gz cpython-56265564ff43da395d358fcc28803478892a686b.tar.bz2 |
Back out fix for issue #13886; it introduced a new bug in interactive readline use.
Diffstat (limited to 'Modules/readline.c')
-rw-r--r-- | Modules/readline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/readline.c b/Modules/readline.c index 0c38718..0d99dc9 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -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) { |