Skip to content

Simplify Windows path encoding - #23351

Open
stefnotch wants to merge 1 commit into
rust-lang:masterfrom
stefnotch:simplify-path-encoding
Open

stefnotch wants to merge 1 commit into
rust-lang:masterfrom
stefnotch:simplify-path-encoding

Conversation

@stefnotch

Copy link
Copy Markdown

In #5756 the path encoding was improved to normalize weird Windows paths

  • Windows is case insensitive. This affected the drive letter.
  • Windows usually accepts either \ or / as the path separator.

Now that UTF-8 paths are enforced in r-a, we can slightly simplify the special casing. We no longer need wide chars and normal platforms can directly convert their paths to bytes.

I am planning on adopting the same code in wgsl-analyzer.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants