summaryrefslogtreecommitdiff
path: root/Python/frozenmain.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-12 14:35:46 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-12 14:35:46 +0200
commitb51bd875193c84e51afb907a0c8ff6091fc95d5f (patch)
treed2e3c85d92f1ae680f0c90b4b4fc88cce58ecba0 /Python/frozenmain.c
parente7ed9c7bd2204dd48d67eb7b14813c0338a85a0c (diff)
parentf246749b9aa9cdb1f05eca29b7eef6a04e05fc8b (diff)
downloadcpython-b51bd875193c84e51afb907a0c8ff6091fc95d5f.tar.gz
Issue #28648: Fixed crash in Py_DecodeLocale() in debug build on Mac OS X
when decode astral characters.
Diffstat (limited to 'Python/frozenmain.c')
-rw-r--r--Python/frozenmain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/frozenmain.c b/Python/frozenmain.c
index b05c94a7e1..de8bd35453 100644
--- a/Python/frozenmain.c
+++ b/Python/frozenmain.c
@@ -54,7 +54,7 @@ Py_FrozenMain(int argc, char **argv)
setlocale(LC_ALL, "");
for (i = 0; i < argc; i++) {
- argv_copy[i] = _Py_char2wchar(argv[i], NULL);
+ argv_copy[i] = Py_DecodeLocale(argv[i], NULL);
argv_copy2[i] = argv_copy[i];
if (!argv_copy[i]) {
fprintf(stderr, "Unable to decode the command line argument #%i\n",