-
-
Notifications
You must be signed in to change notification settings - Fork 817
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
Absolute paths on Windows #93
Comments
According to Microsoft:
Source: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx And the Ruby language uses forward slashes for File paths and that works on Windows. |
@sharkdp Upon further inspection, it appears that this is something specific to use std::path::Path;
fn main() {
let path = Path::new("C:/Users/Ofek");
println!("{}", path.canonicalize().unwrap().display());
} yields |
This might come from using |
Has this already been fixed? I can't repro this behavior on Windows 10.
|
@reima Thank you for the feedback. It has not been fixed. I'm not sure, but this issue might only appear if an explicit search path is given (like in |
It works for me even with an explicit path:
@ofek Can you please tell us how to reproduce this issue? |
The bug is in the colored output (which I disabled in my examples). The problem is that the first
I'll make a PR in a bit. |
@reima Great job bug hunting! |
I currently get 2 extra path separators after the drive e.g.
C:\\\Users\Ofek\Desktop\...
which does not work in Windows.Windows 7:
Windows 10:
The text was updated successfully, but these errors were encountered: