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 176d263 commit 6a8c313Copy full SHA for 6a8c313
Python/preconfig.c
@@ -720,17 +720,18 @@ _PyPreConfig_Read(_PyPreConfig *config, const _PyArgv *args)
720
_Py_SetLocaleFromEnv(LC_CTYPE);
721
722
_PyPreCmdline cmdline = _PyPreCmdline_INIT;
723
+ int init_utf8_mode = Py_UTF8Mode;
724
+#ifdef MS_WINDOWS
725
+ int init_legacy_encoding = Py_LegacyWindowsFSEncodingFlag;
726
+#endif
727
+
728
if (args) {
729
err = _PyPreCmdline_SetArgv(&cmdline, args);
730
if (_Py_INIT_FAILED(err)) {
731
goto done;
732
}
733
734
- int init_utf8_mode = Py_UTF8Mode;
-#ifdef MS_WINDOWS
- int init_legacy_encoding = Py_LegacyWindowsFSEncodingFlag;
-#endif
735
int locale_coerced = 0;
736
int loops = 0;
737
0 commit comments