This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
gas testsuite vs. $LANG
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Mon, 7 May 2012 18:51:58 +0930
- Subject: gas testsuite vs. $LANG
If I enable NLS and have LANG=en_AU.UTF-8 here, I run into testsuite
failures due to "recognised" being spelled properly. ;-) This fixes
the problem, using a technique found in ld/Makefile.am. I'm applying
the same change to binutils/ too.
binutils/
* Makefile.am (check-DEJAGNU): Clear LC_COLLATE, LC_ALL and LANG.
* Makefile.in: Regenerate.
gas/
* Makefile.am (check-DEJAGNU): Clear LC_COLLATE, LC_ALL and LANG.
* Makefile.in: Regenerate.
Index: binutils/Makefile.am
===================================================================
RCS file: /cvs/src/src/binutils/Makefile.am,v
retrieving revision 1.132
diff -u -p -r1.132 Makefile.am
--- binutils/Makefile.am 13 Dec 2011 09:13:15 -0000 1.132
+++ binutils/Makefile.am 6 May 2012 07:15:52 -0000
@@ -158,6 +158,7 @@ CC_FOR_TARGET = ` \
check-DEJAGNU: site.exp
srcdir=`cd $(srcdir) && pwd`; export srcdir; \
r=`pwd`; export r; \
+ LC_COLLATE=; LC_ALL=; LANG=; export LC_COLLATE LC_ALL LANG; \
EXPECT=$(EXPECT); export EXPECT; \
runtest=$(RUNTEST); \
if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
Index: gas/Makefile.am
===================================================================
RCS file: /cvs/src/src/gas/Makefile.am,v
retrieving revision 1.197
diff -u -p -r1.197 Makefile.am
--- gas/Makefile.am 3 May 2012 13:11:57 -0000 1.197
+++ gas/Makefile.am 6 May 2012 07:15:56 -0000
@@ -393,6 +393,7 @@ check-DEJAGNU: site.exp
cp site.exp testsuite/site.exp
rootme=`pwd`; export rootme; \
srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
+ LC_COLLATE=; LC_ALL=; LANG=; export LC_COLLATE LC_ALL LANG; \
EXPECT=${EXPECT} ; export EXPECT ; \
runtest=$(RUNTEST); \
cd testsuite; \
--
Alan Modra
Australia Development Lab, IBM