]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: permit Unicode spaces in (expanded) package paths
authorRobert Griesemer <gri@golang.org>
Fri, 16 Jun 2017 21:48:38 +0000 (14:48 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 19 Jun 2017 16:59:58 +0000 (16:59 +0000)
commit6c2458e72d85dd0d388e4d27b6b361899084d526
tree42bbde0f84db344fbade6983a255060b92bda67b
parenta07ee270462550d17a6541ec8dbd62282477ec6a
cmd/compile: permit Unicode spaces in (expanded) package paths

This doesn't change the existing restriction with disallows
spaces in import paths (as found in an import declaration).
It simply permits packages to be under a directory name that
may contain spaces.

Verified manually that it works. This could use a test, but the
change is trivial. We also can't use the existing test framework
(under test/) because the way those tests are run with test/run.go,
the mechanims for compiling a directory, even if it contains blanks
it its name, does't produce compiler paths with blanks
(the compilation is local).

Fixes #20306.

Change-Id: I6cbffb86c3394347897c3c94b110da0aadc5bfdf
Reviewed-on: https://go-review.googlesource.com/46001
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/compile/internal/gc/bimport.go
src/cmd/compile/internal/gc/main.go
src/cmd/compile/internal/gc/subr.go