From be1a94b401112cab46a60c8bb9c42e16e1b70647 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Sat, 19 Oct 2013 23:07:20 -0400 Subject: [PATCH] cmd/yacc: fix stderr on Windows. Fixes #6620. R=golang-dev, dave, r CC=golang-dev https://golang.org/cl/15330043 --- src/cmd/yacc/yacc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/yacc/yacc.go b/src/cmd/yacc/yacc.go index dd4d3e69af..c53dc3b74b 100644 --- a/src/cmd/yacc/yacc.go +++ b/src/cmd/yacc/yacc.go @@ -357,7 +357,7 @@ func main() { func setup() { var j, ty int - stderr = bufio.NewWriter(os.NewFile(2, "stderr")) + stderr = bufio.NewWriter(os.Stderr) foutput = nil flag.Parse()