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.
1 parent f0dfbaf commit 6a9a329Copy full SHA for 6a9a329
1 file changed
Python/pythonrun.c
@@ -195,9 +195,9 @@ Py_Initialize(void)
195
if (!Py_FileSystemDefaultEncoding) {
196
char *saved_locale = setlocale(LC_CTYPE, NULL);
197
char *codeset;
198
+ PyObject *enc = NULL;
199
setlocale(LC_CTYPE, "");
200
codeset = nl_langinfo(CODESET);
- PyObject *enc = NULL;
201
if (*codeset) {
202
enc = PyCodec_Encoder(codeset);
203
if (enc) {
0 commit comments