summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorxdegaye <xdegaye@gmail.com>2017-11-12 11:45:59 (GMT)
committerGitHub <noreply@github.com>2017-11-12 11:45:59 (GMT)
commit1588be66d7b0eeebc4614309cd0fc837ff52776a (patch)
tree97210c1876d31fe2bc78d9eb029725fd33adbb32 /Modules
parent9e78dc25179a492550dc602e47e7f4d24e3c89a3 (diff)
downloadcpython-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.c2
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) {