]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1] cmd/dist: emit \r in env -w output
authorRuss Cox <rsc@golang.org>
Fri, 21 Sep 2012 19:55:09 +0000 (05:55 +1000)
committerRuss Cox <rsc@golang.org>
Fri, 21 Sep 2012 19:55:09 +0000 (05:55 +1000)
commitec783af29cc2468fa190c52e3833d492d56ab85a
tree387791bbda2deaedf8d843eb4248cfbb99e51a5f
parent4dfecf3675a054dc5085a9377e9c40ee50fad649
[release-branch.go1] cmd/dist: emit \r in env -w output

««« backport 108165c03c70
cmd/dist: emit \r in env -w output

go tool dist env -w is supposed to print a Windows batch file.
Normally Windows will execute batch files without \r before \n,
but issue 3060 reports that if the file ends up containing paths
written in Chinese, Windows 7 cannot execute it without the \r.
So add the \r.

Fixes #3060.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6498120

»»»
src/cmd/dist/build.c