-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Fix Unreadable non-UTF-8 output on localized MSVC #110586
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
These commits modify the If this was intentional then you can ignore this comment. |
This comment has been minimized.
This comment has been minimized.
0b255da
to
1006da8
Compare
Ok, I'm not entirely sure which directory the tests should fit in but I tried to find something related. |
Sorry for the late response. The changes look good to me, but @ChrisDenton do you have anyone in mind who may be able to give this a more ... windows-specific review? |
Ah, this is often an issue 🙂. I know @klensy has helped in reviewing Windows bits in the past (but no pressure). Otherwise I'll see if I can find a random libs reviewer willing to wade in. |
It's not really about Windows, to be honest, it's about the horrors of text encoding. Windows is just the crime scene, not the crime. |
This comment has been minimized.
This comment has been minimized.
5de5f04
to
34a8cab
Compare
Fixes rust-lang#35785 by converting non UTF-8 linker output to Unicode using the OEM code page. Before: ```text = note: Non-UTF-8 output: LINK : fatal error LNK1181: cannot open input file \'m\x84rchenhaft.obj\'\r\n ``` After: ```text = note: LINK : fatal error LNK1181: cannot open input file 'märchenhaft.obj' ``` The difference is more dramatic if using a non-ascii language pack for Visual Studio.
34a8cab
to
9b9d39e
Compare
Okay, this looks much better, it fits with my understanding of the Windows codepages, and I can see that the control flow looks correct, now! Since compiler-errors is also onboard, @bors r+ |
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#110586 (Fix Unreadable non-UTF-8 output on localized MSVC) - rust-lang#110652 (Add test for warning-free builds of `core` under `no_global_oom_handling`) - rust-lang#110973 (improve error notes for packed struct reference diagnostic) - rust-lang#110981 (Move most rustdoc-ui tests into subdirectories) - rust-lang#110983 (rustdoc: Get `repr` information through `AdtDef` for foreign items) - rust-lang#110984 (Do not resolve anonymous lifetimes in consts to be static.) - rust-lang#110997 (Improve internal field comments on `slice::Iter(Mut)`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #35785 by converting non UTF-8 linker output to Unicode using the OEM code page.
Before:
After:
The difference is more dramatic if using a non-ascii language pack for Windows.