summaryrefslogtreecommitdiff
path: root/Programs
diff options
context:
space:
mode:
Diffstat (limited to 'Programs')
-rw-r--r--Programs/python.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Programs/python.c b/Programs/python.c
index 9811c01d49..2e5e4e368f 100644
--- a/Programs/python.c
+++ b/Programs/python.c
@@ -52,7 +52,7 @@ main(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);
if (!argv_copy[i]) {
PyMem_RawFree(oldloc);
fprintf(stderr, "Fatal Python error: "