summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-11-10 19:56:32 -0800
committerRuss Cox <rsc@golang.org>2009-11-10 19:56:32 -0800
commit8a274cff142f82e267e29c2a5b42f7649f127585 (patch)
tree60114c9a42853a0516c9b5133ef4c65894c94d01
parent4c232351834338fc107d9da5226422178e87c4e7 (diff)
downloadgolang-8a274cff142f82e267e29c2a5b42f7649f127585.tar.gz
gotest: avoid problems with grepping for ·
Fixes issue 7. R=r CC=golang-dev http://codereview.appspot.com/154043
-rwxr-xr-xsrc/cmd/gotest/gotest5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/gotest/gotest b/src/cmd/gotest/gotest
index 4f6c6c278..956a67965 100755
--- a/src/cmd/gotest/gotest
+++ b/src/cmd/gotest/gotest
@@ -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