Skip to content

[3.11] gh-95027: Fix regrtest stdout encoding on Windows (GH-98492) - #98521

Merged
miss-islington merged 1 commit into
python:3.11from
miss-islington:backport-ec1f6f5-3.11
Oct 21, 2022
Merged

miss-islington merged 1 commit into
python:3.11from
miss-islington:backport-ec1f6f5-3.11

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 21, 2022 •

Copy link
Copy Markdown
Contributor

On Windows, when the Python test suite is run with the -jN option,
the ANSI code page is now used as the encoding for the stdout
temporary file, rather than using UTF-8 which can lead to decoding
errors.
(cherry picked from commit ec1f6f5)

Co-authored-by: Victor Stinner vstinner@python.org

On Windows, when the Python test suite is run with the -jN option,
the ANSI code page is now used as the encoding for the stdout
temporary file, rather than using UTF-8 which can lead to decoding
errors.
(cherry picked from commit ec1f6f5)

Co-authored-by: Victor Stinner <vstinner@python.org>

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good bot.

@vstinner

Copy link
Copy Markdown
Member

@pablogsal: You may want to cherrypick this fix into Python 3.11.0 final, without it, the Python test suite fails randomly on Windows. See the issue for details.

@pablogsal

Copy link
Copy Markdown
Member

Added to 3.11.0! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants