]> Cypherpunks repositories - gostls13.git/commitdiff
gotest: avoid problems with grepping for ·
authorRuss Cox <rsc@golang.org>
Wed, 11 Nov 2009 03:56:32 +0000 (19:56 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 11 Nov 2009 03:56:32 +0000 (19:56 -0800)
Fixes #7.

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

src/cmd/gotest/gotest

index 4f6c6c2783ba303a30bd5164a442bd277685ec58..956a67965acb2490a12211e82e26e4a9388e91dc 100755 (executable)
@@ -8,6 +8,11 @@
 # tests.
 # If files are named on the command line, use them instead of test*.go.
 
+# Makes egrep,grep work better with · if we put them
+# in ordinary C mode instead of what the current language is.
+unset LANG
+export LC_CTYPE=C
+
 _GC=$GC        # Make.$GOARCH will overwrite this
 
 . $GOROOT/src/Make.$GOARCH