summaryrefslogtreecommitdiff
path: root/Python/frozenmain.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-22 09:09:24 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-01-22 09:09:24 +0100
commit3fd279ebe09bbd98f93b1a74e44bf69b05f28b14 (patch)
treea29b724be9b4d73eaf040c1da3f06eb30440304c /Python/frozenmain.c
parentf21948c9b62b6c4e31a5d10f4c4eddd8cb3e2331 (diff)
parent7d98c6e7cca7c964ce01afdf88125b147b57943f (diff)
downloadcpython-3fd279ebe09bbd98f93b1a74e44bf69b05f28b14.tar.gz
Merge 3.4
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 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",