diff options
author | Ned Deily <nad@acm.org> | 2014-09-13 23:40:27 -0700 |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2014-09-13 23:40:27 -0700 |
commit | 4278e8cf357c7418651ca0e23346b2ddec74edce (patch) | |
tree | a3c23ca1ef525340d98e01bb53fc9e6785ce45ff /Python/frozenmain.c | |
parent | 0d48f974662035c14912d225b71b6cf93b621bb0 (diff) | |
parent | 0675102eeb39b5bf471af40e8af6729102fccc6b (diff) | |
download | cpython-4278e8cf357c7418651ca0e23346b2ddec74edce.tar.gz |
Issue #22168: Prevent turtle AttributeError with non-default Canvas on OS X.
Diffstat (limited to 'Python/frozenmain.c')
-rw-r--r-- | Python/frozenmain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/frozenmain.c b/Python/frozenmain.c index 55d05fc26f..cb84ed5f24 100644 --- a/Python/frozenmain.c +++ b/Python/frozenmain.c @@ -52,7 +52,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", |