Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add comment
  • Loading branch information
kumaraditya303 authored Sep 29, 2022
commit 1622292459a321554852f9f27f4da693f4654171
2 changes: 2 additions & 0 deletions Programs/_bootstrap_python.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ main(int argc, char **argv)

PyPreConfig preconfig;
PyPreConfig_InitIsolatedConfig(&preconfig);
// To keep code simple, pre-initialization doesn't parse argv.
// It ignores -E, -I and -X dev command line options etc.
// Force utf8 encoding
preconfig.utf8_mode = 1;
status = Py_PreInitialize(&preconfig);
Expand Down