-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 #38491: fix an abspath() edge case on Windows #38981
Conversation
LGTM thanks! |
I'll give it a day or two to let others also look and comment if they have something to say. Otherwise, ping me if I forget to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I tested this and added some thoughts. PTAL and let me know what you think.
@@ -9,6 +9,23 @@ | |||
@test isabspath(S(homedir())) | |||
@test !isabspath(S("foo")) | |||
end | |||
if Sys.iswindows() | |||
@testset "issue #38491" begin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@testset "issue #38491" begin | |
@testset "issue #38491" begin withenv("=X:" => nothing, "=Y:" => nothing) do |
@test lowercase(abspath("$(pwd_drive)a")) == lowercase(joinpath(pwd(), "a")) | ||
@test lowercase(abspath(lowercase(pwd_drive))) == lowercase("$(pwd())\\") | ||
@test lowercase(abspath(uppercase(pwd_drive))) == lowercase("$(pwd())\\") | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
end | |
end; end |
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
unrelated test failures on linux |
* Fix #38491: fix an abspath() edge case on Windows * Update base/path.jl Co-authored-by: Jameson Nash <vtjnash@gmail.com> * Update base/path.jl * Update test/path.jl Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: Mustafa M <mus-m@outlook.com> Co-authored-by: Jameson Nash <vtjnash@gmail.com> (cherry picked from commit f023677)
* Fix #38491: fix an abspath() edge case on Windows * Update base/path.jl Co-authored-by: Jameson Nash <vtjnash@gmail.com> * Update base/path.jl * Update test/path.jl Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: Mustafa M <mus-m@outlook.com> Co-authored-by: Jameson Nash <vtjnash@gmail.com> (cherry picked from commit f023677)
* Fix #38491: fix an abspath() edge case on Windows * Update base/path.jl Co-authored-by: Jameson Nash <vtjnash@gmail.com> * Update base/path.jl * Update test/path.jl Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: Mustafa M <mus-m@outlook.com> Co-authored-by: Jameson Nash <vtjnash@gmail.com> (cherry picked from commit f023677)
…#38981) * Fix JuliaLang#38491: fix an abspath() edge case on Windows * Update base/path.jl Co-authored-by: Jameson Nash <vtjnash@gmail.com> * Update base/path.jl * Update test/path.jl Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: Mustafa M <mus-m@outlook.com> Co-authored-by: Jameson Nash <vtjnash@gmail.com>
…#38981) * Fix JuliaLang#38491: fix an abspath() edge case on Windows * Update base/path.jl Co-authored-by: Jameson Nash <vtjnash@gmail.com> * Update base/path.jl * Update test/path.jl Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: Mustafa M <mus-m@outlook.com> Co-authored-by: Jameson Nash <vtjnash@gmail.com>
…#38981) * Fix JuliaLang#38491: fix an abspath() edge case on Windows * Update base/path.jl Co-authored-by: Jameson Nash <vtjnash@gmail.com> * Update base/path.jl * Update test/path.jl Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: Mustafa M <mus-m@outlook.com> Co-authored-by: Jameson Nash <vtjnash@gmail.com>
* Fix #38491: fix an abspath() edge case on Windows * Update base/path.jl Co-authored-by: Jameson Nash <vtjnash@gmail.com> * Update base/path.jl * Update test/path.jl Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: Mustafa M <mus-m@outlook.com> Co-authored-by: Jameson Nash <vtjnash@gmail.com> (cherry picked from commit f023677)
Fixes #38491.