-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
path separator on windows is not always \ #501
Comments
There is no automatic detection, but you can use the |
On cmd it works, but on mingw bash (the one that git for windows provides if you're curious) it outputs:
|
same without quotes |
That error message is baffling to me. Someone will need to debug it. I'll do it eventually. |
Ok, count on me for that Seems there's window detecting no? Line 412 in 13235b5
and docs say it too: Have to check what is behind cfg!(windows) maybe that can be a better fix. By now options would work If you want to go for OS detection or want to detect that problem with bytes just open a bug and comment here |
@albfan Why did you close this? If |
My problem with choose a separator is resolved:
There's another problem that maybe you want to solve. But feels that is a different issue Do you want me to reopen this and work that here? |
@albfan I understand that you found a work-around, but if If there's a distinct issue, then I'd say open a new ticket... |
Here some test:
Have to learn how to debug rust, any hint on windows? |
@albfan Ah, I wonder if the problem here is your shell. Maybe the shell is expanding |
I think so |
http://www.mingw.org/wiki/Posix_path_conversion Here we are. / gets translated into a absolute path on mingw. Double // prevents conversion. That's why 20 bytes This is solved then |
|
running under mingw output shows paths with \ but mingw (running bash) uses /
Were is the code related with path separator?, maybe mingw can be detected to fix that
The text was updated successfully, but these errors were encountered: