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 forward slashes not working on Windows #212

Merged
merged 1 commit into from
Dec 17, 2022
Merged

Fix forward slashes not working on Windows #212

merged 1 commit into from
Dec 17, 2022

Conversation

egelja
Copy link
Contributor

@egelja egelja commented Dec 16, 2022

MinGW generates paths with forward slashes in __FILE__.
However, fs::path::preferred_separator is set to \\ on Windows.

This is a fix to allow both separators to work.

This is ok as / is the "portable separator":
image

MinGW generates paths with forward slashes in `__FILE__`.
However, `fs::path::preferred_separator` is set to `\\` on Windows.

This is a fix to allow both separators to work.
@odygrd
Copy link
Owner

odygrd commented Dec 17, 2022

thanks for the PR : )

@odygrd odygrd merged commit 97379ac into odygrd:master Dec 17, 2022
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.

2 participants