From patchwork Tue Jul 20 12:22:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [gccgo] Force "C" locale in gotest Date: Tue, 20 Jul 2010 02:22:51 -0000 From: Ian Taylor X-Patchwork-Id: 59304 Message-Id: To: gcc-patches@gcc.gnu.org This patch forces the use of the "C" locale in gotest, so that egrep does the right thing. Committed to gccgo branch. Ian diff -r 8f87e072151f libgo/testsuite/gotest --- a/libgo/testsuite/gotest Mon Jul 19 01:42:34 2010 -0700 +++ b/libgo/testsuite/gotest Tue Jul 20 05:21:29 2010 -0700 @@ -8,6 +8,12 @@ # tests. # If files are named on the command line, use them instead of test*.go. +# Makes egrep,grep work better in general if we put them +# in ordinary C mode instead of what the current language is. +unset LANG +export LC_ALL=C +export LC_CTYPE=C + GC=${GC:-gccgo} GL=${GL:-${GC-gccgo}} GOLIBS=${GOLIBS:=-lgotesting}