Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4283)

Issue 6498120: code review 6498120: cmd/dist: emit \r in env -w output (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by rsc
Modified:
11 years, 7 months ago
Reviewers:
CC:
golang-dev, bradfitz
Visibility:
Public.

Description

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 issue 3060.

Patch Set 1 #

Patch Set 2 : diff -r a9fc9baa621b https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r a9fc9baa621b https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r a4ab112f5b8f https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/cmd/dist/build.c View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 7 months ago (2012-09-12 16:00:18 UTC) #1
bradfitz
LGTM On Sep 12, 2012 9:00 AM, <rsc@golang.org> wrote: > Reviewers: golang-dev_googlegroups.com, > > Message: ...
11 years, 7 months ago (2012-09-12 16:04:03 UTC) #2
rsc
11 years, 7 months ago (2012-09-12 16:05:36 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=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 issue 3060.

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/6498120
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b