1
0
mirror of https://github.com/golang/go synced 2024-11-17 20:34:44 -07:00
go/src/path
Damien Neil 79559c1e7e path/filepath: make Join("c:", "/a") return "c:/a" again
Historically, on Windows filepath.Join("c:", elt) does not insert
a path separator between "c:" and elt, but preserves leading slashes
in elt. Restore this behavior, which was inadvertently changed by
CL 444280.

Fixes #56988

Change-Id: Id728bf311f4093264f8c067d8b801ea9ebef5b5f
Reviewed-on: https://go-review.googlesource.com/c/go/+/453497
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Run-TryBot: Damien Neil <dneil@google.com>
2022-12-02 19:48:47 +00:00
..
filepath path/filepath: make Join("c:", "/a") return "c:/a" again 2022-12-02 19:48:47 +00:00
example_test.go
match_test.go
match.go all: remove trailing blank doc comment lines 2022-04-01 18:18:07 +00:00
path_test.go
path.go all: gofmt main repo 2022-04-11 16:34:30 +00:00