This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFC/RFA] Run tests with LC_ALL=C


Hello,

almost every time I setup GCC bootstraps on a new machine I forget to
change my locale settings before running the test suite.  This then
causes several failures due to localized messages.  Is there any reason
why something like this patch can't be applied?

Cheers,
David Ayers
2004-07-01  David Ayers  <d.ayers@inode.at>

	* Makefile.in (lang_checks, check-consistency): Set LC_ALL to C.
	
Index: gcc/Makefile.in
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.1316
diff -u -r1.1316 Makefile.in
--- gcc/Makefile.in	1 Jul 2004 04:08:57 -0000	1.1316
+++ gcc/Makefile.in	1 Jul 2004 16:33:46 -0000
@@ -3474,6 +3474,7 @@
 	srcdir=`cd ${srcdir}; ${PWD_COMMAND}` ; export srcdir ; \
 	cd $(TESTSUITEDIR); \
 	EXPECT=${EXPECT} ; export EXPECT ; \
+	LC_ALL=C ; export LC_ALL ; \
 	if [ -f $${rootme}/../expect/expect ] ; then  \
 	   TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWD_COMMAND}` ; \
 	    export TCL_LIBRARY ; fi ; \
@@ -3484,6 +3485,7 @@
 	srcdir=`cd ${srcdir}; ${PWD_COMMAND}` ; export srcdir ; \
 	cd testsuite; \
 	EXPECT=${EXPECT} ; export EXPECT ; \
+	LC_ALL=C ; export LC_ALL ; \
 	if [ -f $${rootme}/../expect/expect ] ; then  \
 	   TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWD_COMMAND}` ; \
 	   export TCL_LIBRARY ; fi ; \

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]