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

Path::relative_from() doesn't account for case insensitivity on Windows #23264

Closed
nukep opened this issue Mar 10, 2015 · 1 comment
Closed

Path::relative_from() doesn't account for case insensitivity on Windows #23264

nukep opened this issue Mar 10, 2015 · 1 comment

Comments

@nukep
Copy link

nukep commented Mar 10, 2015

This has resulted in an issue in Cargo where rustdocs cannot be generated on Windows machines:
rust-lang/cargo#1393

use std::path::Path;
fn main() {
    let p = Path::new(r"C:\src\rust\cargo-test\test\Cargo.toml");
    println!("{:?}", p.relative_from(r"C:\src\rust\cargo-test\test"));
    println!("{:?}", p.relative_from(r"c:\src\rust\cargo-test\test"));
}
Some("Cargo.toml")
None
@alexcrichton
Copy link
Member

cc @aturon

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

No branches or pull requests

3 participants