8000 GH-94526: Force utf8 encoding in _bootstrap_python by kumaraditya303 · Pull Request #96889 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-94526: Force utf8 encoding in _bootstrap_python #96889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
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
Next Next commit
Update Programs/_bootstrap_python.c
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
  • Loading branch information
kumaraditya303 and ericsnowcurrently authored Sep 27, 2022
commit b45af781c9ac3f597dbb635969806ef7ca8d7276
2 changes: 1 addition & 1 deletion Programs/_bootstrap_python.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ main(int argc, char **argv)
{
PyStatus status;

PyConfig config;
PyPreConfig preconfig;
PyPreConfig_InitIsolatedConfig(&preconfig);
// Force utf8 encoding
Expand All @@ -73,6 +72,7 @@ main(int argc, char **argv)
Py_ExitStatusException(status);
}

PyConfig config;
PyConfig_InitIsolatedConfig(&config);
// don't warn, pybuilddir.txt does not exist yet
config.pathconfig_warnings = 0;
Expand Down
0