This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

Disable i18n when running the testsuite (Re: ping: [patch 5/6] testsuite: Fix prelink-support.exp without prelink installed)


On Monday 19 July 2010 16:43:26, Daniel Jacobowitz wrote:
> On Mon, Jul 19, 2010 at 04:06:29PM +0100, Pedro Alves wrote:

> > I then just remember to do "unset LANG", and rerun the testsuite,
> > though I think this should be handled by our testsuite automatically
> > somewhere.  How does gcc's testsuite handle this?
> 
> # We set LC_ALL and LANG to C so that we get the same error messages
> as expected.
> setenv LC_ALL C
> setenv LANG C

It happened again :-)  Might as well get it over with.  Thanks
for the pointer.  The patch below works for me.

-- 
Pedro Alves

2010-07-28  Pedro Alves  <pedro@codesourcery.com>

	* lib/gdb.exp (gdb_init): Set LC_ALL and LANG to C in the
	environment.

---
 gdb/testsuite/lib/gdb.exp |    5 +++++
 1 file changed, 5 insertions(+)

Index: src/gdb/testsuite/lib/gdb.exp
===================================================================
--- src.orig/gdb/testsuite/lib/gdb.exp	2010-07-28 14:21:47.000000000 +0100
+++ src/gdb/testsuite/lib/gdb.exp	2010-07-28 14:23:54.000000000 +0100
@@ -2687,6 +2687,11 @@ proc gdb_init { args } {
 	set banned_variables_traced 1
     }
 
+    # We set LC_ALL and LANG to C so that we get the same messages as
+    # expected.
+    setenv LC_ALL C
+    setenv LANG C
+
     return [eval default_gdb_init $args];
 }
 


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