Skip to content

Fix a Windows issue where Python codepage would be reverted from unicode to cp1252#26972

Open
juj wants to merge 1 commit into
emscripten-core:mainfrom
juj:fix_windows_python_cp1252
Open

Fix a Windows issue where Python codepage would be reverted from unicode to cp1252#26972
juj wants to merge 1 commit into
emscripten-core:mainfrom
juj:fix_windows_python_cp1252

Conversation

@juj
Copy link
Copy Markdown
Collaborator

@juj juj commented May 16, 2026

Fix a Windows issue where Python codepage would be reverted from unicode to cp1252, if stdout/stderr was being redirected to a file.

To fix this issue, pass the -X utf8 command line parameter whenever python -E flag is being used.

Fixes test other.test_wasm_sourcemap_relative_paths on Windows when build is driven by Buildbot CI. See buildbot/buildbot#9047 for related info.

…ode to cp1252, if stdout/stderr was being redirected to a file. Fixes test other.test_wasm_sourcemap_relative_paths on Windows when build is driven by Buildbot CI. See buildbot/buildbot#9047 for related info.
@juj juj enabled auto-merge (squash) May 16, 2026 21:15
@sbc100
Copy link
Copy Markdown
Collaborator

sbc100 commented May 17, 2026

Is this because you are settings PYTHONUTF8 and -E is then ignoring it?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants