Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/goPublic

Commitec783af

Browse files
committed
[release-branch.go1] cmd/dist: emit \r in env -w output
««« backport 108165c03c70cmd/dist: emit \r in env -w outputgo 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 pathswritten in Chinese, Windows 7 cannot execute it without the \r.So add the \r.Fixes#3060.R=golang-dev, bradfitzCC=golang-devhttps://golang.org/cl/6498120»»»
1 parent4dfecf3 commitec783af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/cmd/dist/build.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ cmdenv(int argc, char **argv)
13011301
vflag++;
13021302
break;
13031303
case'w':
1304-
format="set %s=%s\n";
1304+
format="set %s=%s\r\n";
13051305
break;
13061306
default:
13071307
usage();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp