diff options
Diffstat (limited to 'Programs/python.c')
-rw-r--r-- | Programs/python.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Programs/python.c b/Programs/python.c index 9811c01..2e5e4e3 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: " |