1
0
mirror of https://github.com/golang/go synced 2024-11-25 10:17:57 -07:00

cgo: allow Window's specific path characters in flag directives.

Example: #cgo windows LDFLAGS: -LC:\\WINDOWS\\system32

R=alex.brainman, go.peter.90, golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5154042
This commit is contained in:
Joe Poirier 2011-10-04 15:07:28 +11:00 committed by Alex Brainman
parent 2cef85f8a1
commit aec89a6db9

View File

@ -236,7 +236,7 @@ func splitQuoted(s string) (r []string, err os.Error) {
return args, err
}
var safeBytes = []byte("+-.,/0123456789=ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz")
var safeBytes = []byte(`+-.,/0123456789:=ABCDEFGHIJKLMNOPQRSTUVWXYZ\_abcdefghijklmnopqrstuvwxyz`)
func safeName(s string) bool {
if s == "" {