]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: emit \r in env -w output
authorRuss Cox <rsc@golang.org>
Wed, 12 Sep 2012 16:05:34 +0000 (12:05 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 12 Sep 2012 16:05:34 +0000 (12:05 -0400)
commit792518c65618599853e1f9da3c23d4ba7d2cce9f
tree80727e5924fe7ea7983c877c7180b05fdb3c210c
parent1b4e37a43c2cb70d8158fd9b94fdac5485d23326
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