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

Add backslash to percent_encode_sets.PATH_SEGMENT #578

Merged
merged 3 commits into from
Aug 28, 2021

Conversation

Jikstra
Copy link
Contributor

@Jikstra Jikstra commented Aug 27, 2021

Fixes #545

@svenstaro
Copy link
Owner

Any chance for a test? I think it should be trivial as you can probably just add an entry to the file fixtures with this name.

@Jikstra
Copy link
Contributor Author

Jikstra commented Aug 28, 2021

Oh yes! I somehow thought there was already a file with a backslash, but the backslash was just escaping another character ^^

Added a test and it works :)

@Jikstra Jikstra force-pushed the fix_percent_encdoing_backslash branch from ce4b74b to f5cbd73 Compare August 28, 2021 11:07
@Jikstra
Copy link
Contributor Author

Jikstra commented Aug 28, 2021

Ay the test now fails on windows, i guess creating a file with a backslash on windows panics? Is there some cool macro that we could add to that file so that it doesnt get created on windows?

@aliemjay
Copy link
Contributor

Is there some cool macro that we could add to that file so that it doesnt get created on windows?

#[cfg(not(windows))]

@svenstaro svenstaro merged commit 6d5d6b4 into svenstaro:master Aug 28, 2021
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.

Cannot retrieve file with \ in name
3 participants