diff options
author | xdegaye <xdegaye@gmail.com> | 2017-11-12 11:45:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-12 11:45:59 (GMT) |
commit | 1588be66d7b0eeebc4614309cd0fc837ff52776a (patch) | |
tree | 97210c1876d31fe2bc78d9eb029725fd33adbb32 /Modules | |
parent | 9e78dc25179a492550dc602e47e7f4d24e3c89a3 (diff) | |
download | cpython-1588be66d7b0eeebc4614309cd0fc837ff52776a.zip cpython-1588be66d7b0eeebc4614309cd0fc837ff52776a.tar.gz cpython-1588be66d7b0eeebc4614309cd0fc837ff52776a.tar.bz2 |
bpo-28180: Fix the implementation of PEP 538 on Android (GH-4334)
Diffstat (limited to 'Modules')
-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 951bc82..d0e3b91 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -1245,7 +1245,7 @@ call_readline(FILE *sys_stdin, FILE *sys_stdout, const char *prompt) char *saved_locale = strdup(setlocale(LC_CTYPE, NULL)); if (!saved_locale) Py_FatalError("not enough memory to save locale"); - setlocale(LC_CTYPE, ""); + _Py_SetLocaleFromEnv(LC_CTYPE); #endif if (sys_stdin != rl_instream || sys_stdout != rl_outstream) { |