Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6a8c313

Browse files
authored
bpo-36301: Fix _PyPreConfig_Read() compiler warning (GH-12695)
Initialize init_utf8_mode earlier to fix a compiler warning.
1 parent176d263 commit6a8c313

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎Python/preconfig.c‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -720,17 +720,18 @@ _PyPreConfig_Read(_PyPreConfig *config, const _PyArgv *args)
720720
_Py_SetLocaleFromEnv(LC_CTYPE);
721721

722722
_PyPreCmdlinecmdline=_PyPreCmdline_INIT;
723+
intinit_utf8_mode=Py_UTF8Mode;
724+
#ifdefMS_WINDOWS
725+
intinit_legacy_encoding=Py_LegacyWindowsFSEncodingFlag;
726+
#endif
727+
723728
if (args) {
724729
err=_PyPreCmdline_SetArgv(&cmdline,args);
725730
if (_Py_INIT_FAILED(err)) {
726731
gotodone;
727732
}
728733
}
729734

730-
intinit_utf8_mode=Py_UTF8Mode;
731-
#ifdefMS_WINDOWS
732-
intinit_legacy_encoding=Py_LegacyWindowsFSEncodingFlag;
733-
#endif
734735
intlocale_coerced=0;
735736
intloops=0;
736737

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp