1
0
mirror of https://github.com/golang/go synced 2024-10-02 20:41:21 -06:00

runtime: fix mkversion to output valid path separators

In a GOROOT path a backslash is a path separator
not an escape character. For example, `C:\go`.
Fixes gotest error:
version.go:3: unknown escape sequence: g

R=rsc
CC=golang-dev
https://golang.org/cl/4437076
This commit is contained in:
Peter Mundy 2011-04-27 15:47:12 -04:00 committed by Russ Cox
parent 87ac7c77c0
commit aee6b1160e

View File

@ -4,7 +4,7 @@
char *template =
"// generated by mkversion.c; do not edit.\n"
"package runtime\n"
"const defaultGoroot = \"%s\"\n"
"const defaultGoroot = `%s`\n"
"const theVersion = \"%s\"\n";
void