summaryrefslogtreecommitdiff
path: root/Python/frozenmain.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2015-01-22 22:56:06 -0800
committerGregory P. Smith <greg@krypto.org>2015-01-22 22:56:06 -0800
commit8d0474182b3c0dba017357ed7e3a7d6b5a0e05cb (patch)
tree5635e9e954272393a993fdaa3cf563e91f86f383 /Python/frozenmain.c
parent52d4e1bd942e0dd6209c9e60b3f3cc98eea14b90 (diff)
parent07a465b24e1fc5e4804e536312c917017d0b663e (diff)
downloadcpython-8d0474182b3c0dba017357ed7e3a7d6b5a0e05cb.tar.gz
revert 7b833bd1f509. I misread the side effect that the code was triggering.
*any* kwarg supplied to _assert_python causes it to not append -E to the command line flags so without='-E' does effectively work.
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",