Skip to content
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 Path support for UNC shares #11827

Merged
merged 2 commits into from
Mar 23, 2022

Conversation

straight-shoota
Copy link
Member

The host and share name of a UNC path can contain more characters than just ASCII letters. A grammar description is available here: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-dtyp/62e862f4-2a51-452e-8eeb-dc4ff5ee33cc?redirectedfrom=MSDN
This patch loosens the allowed grammar which fixes use cases containing special characters (for example, the UNC share for the WSL file system is \\wsl$\Ubuntu).

@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:system labels Feb 14, 2022
Copy link
Member

@beta-ziliani beta-ziliani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@beta-ziliani beta-ziliani added this to the 1.4.0 milestone Mar 22, 2022
@straight-shoota straight-shoota merged commit 9f2f260 into crystal-lang:master Mar 23, 2022
@straight-shoota straight-shoota deleted the fix/path-unc branch March 23, 2022 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants