Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1637487 + 94ba691 commit 3607e3dCopy full SHA for 3607e3d
1 file changed
Modules/python.c
@@ -50,8 +50,12 @@ main(int argc, char **argv)
50
#else
51
argv_copy[i] = _Py_char2wchar(argv[i], NULL);
52
#endif
53
- if (!argv_copy[i])
+ if (!argv_copy[i]) {
54
+ fprintf(stderr, "Fatal Python error: "
55
+ "unable to decode the command line argument #%i\n",
56
+ i + 1);
57
return 1;
58
+ }
59
argv_copy2[i] = argv_copy[i];
60
}
61
setlocale(LC_ALL, oldloc);
0 commit comments