Fix a Windows issue where Python codepage would be reverted from unicode to cp1252#26972
Fix a Windows issue where Python codepage would be reverted from unicode to cp1252#26972juj wants to merge 1 commit into
Conversation
…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.
|
Is this because you are settings |
|
No. I do not set I first tried setting |
|
Is there any reason somebody might what to write something other than utf-8 to stdout/stderr? What kind of output are were generating that is non-acsii? i.e. which test fails? I'm a little worryied that we could break some other use case here because On the other hand we go out our way to always write files explictly in utf-8 in almost all cases so maybe this fine? There is one place we specifically do something different: |
|
Yup, it looks like the comment in |
That I don't know an answer to. Currently I don't know of a use case here.
Test Line 9690 in 926047d which in this test is
If system encoding is CP437 or CP1252, then if one attempts to See e.g. http://clbri.com:8010/api/v2/logs/444660/raw_inline where it happened in the test.
Not sure which comment? Iiuc encoding of response files is somewhat orthogonal to the encoding of stdout/stderr streams? I think the options we have here are to either run as |
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 utf8command line parameter whenever python-Eflag is being used.Fixes test
other.test_wasm_sourcemap_relative_pathson Windows when build is driven by Buildbot CI. See buildbot/buildbot#9047 for related info.