]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1.2] cmd/yacc: fix stderr on Windows.
authorAndrew Gerrand <adg@golang.org>
Fri, 1 Nov 2013 00:07:06 +0000 (11:07 +1100)
committerAndrew Gerrand <adg@golang.org>
Fri, 1 Nov 2013 00:07:06 +0000 (11:07 +1100)
««« CL 15330043 / 69bf31787310
cmd/yacc: fix stderr on Windows.
Fixes #6620.

R=golang-dev, dave, r
CC=golang-dev
https://golang.org/cl/15330043
»»»

R=golang-dev
CC=golang-dev
https://golang.org/cl/20550043

src/cmd/yacc/yacc.go

index dd4d3e69afb80873c196b817c2f1440d1b0c73f3..c53dc3b74b40fe2c71ddd8cefe2fdf64c669efec 100644 (file)
@@ -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()