This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Disable i18n when running the testsuite (Re: ping: [patch 5/6] testsuite: Fix prelink-support.exp without prelink installed)
- From: Pedro Alves <pedro at codesourcery dot com>
- To: Daniel Jacobowitz <dan at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org, Jan Kratochvil <jan dot kratochvil at redhat dot com>, Joel Brobecker <brobecker at adacore dot com>
- Date: Wed, 28 Jul 2010 15:26:43 +0100
- Subject: Disable i18n when running the testsuite (Re: ping: [patch 5/6] testsuite: Fix prelink-support.exp without prelink installed)
- References: <20100329161831.GD2940@host0.dyn.jankratochvil.net> <201007191606.29992.pedro@codesourcery.com> <20100719154257.GA26454@caradoc.them.org>
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];
}