-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Relax tests for Windows dos device names #94650
Conversation
Windows 11 no longer turn paths ending with dos device names into device paths. E.g. `C:\path\to\COM1.txt` used to get turned into `\\.\COM1`. Whereas now the path is left as is.
r? @dtolnay (rust-highfive has picked a reviewer for you, use r? to override) |
Just curious, have you seen any communication about this change from Microsoft? I haven't been able to find any, though it is a bit difficult to search for. |
As far as I'm aware there has been none so far. The first I heard of it was when @jstarks brought it up in conversation. Which then caused me to run tests and check how it works now. Honestly I'm pleasantly surprised. The less magic when handling paths the better. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@bors r+ |
📌 Commit 3009eec has been approved by |
Rollup of 5 pull requests Successful merges: - rust-lang#93858 (Add a `process_group` method to UNIX `CommandExt`) - rust-lang#94650 (Relax tests for Windows dos device names) - rust-lang#94991 (Make Weak::new const) - rust-lang#95072 (Re-enable parallel debuginfo tests) - rust-lang#95109 (Extend --check-cfg tests to all predicate inside all/any) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Windows 11 no longer turn paths ending with dos device names into device paths.
E.g.
C:\path\to\COM1.txt
used to get turned into\\.\COM1
. Whereas now this path is left as is.Note though that if the given path is an exact (case-insensitive) match for the string
COM1
then it'll still be converted to\\.\COM1
.