Skip to content

Recognize non-letter Windows drive designators - #377

Draft
aryansk wants to merge 1 commit into
apple:mainfrom
aryansk:codex/issue-271-windows-drive-designators
Draft

Recognize non-letter Windows drive designators#377
aryansk wants to merge 1 commit into
apple:mainfrom
aryansk:codex/issue-271-windows-drive-designators

Conversation

@aryansk

@aryansk aryansk commented Aug 8, 2026

Copy link
Copy Markdown

Fixes #271

What changed

  • Recognize any single non-separator, non-colon character as a Windows drive designator instead of restricting the syntax to ASCII letters.
  • Add simulated-Windows coverage for +:\\foo; keep the Unicode €: case gated to native Windows where the platform character type supports it.

Validation

  • swift test --filter FilePathSyntaxTest — 6 tests passed.

@glessard

Copy link
Copy Markdown
Contributor

FilePath is being moved to the standard library (SE-0529). Consider contributing there once the change has landed.

@aryansk

aryansk commented Aug 12, 2026

Copy link
Copy Markdown
Author

Thanks for the heads-up. I’ll revisit the drive-designator behavior in the standard-library FilePath implementation once SE-0529 lands; this draft remains scoped to the current swift-system implementation.

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.

Non-Letter Drive Windows Paths Are Incorrectly Reported As Non-Absolute

2 participants