From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24345 invoked by alias); 28 Jul 2010 14:26:57 -0000 Received: (qmail 24335 invoked by uid 22791); 28 Jul 2010 14:26:56 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Jul 2010 14:26:48 +0000 Received: (qmail 3732 invoked from network); 28 Jul 2010 14:26:46 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 28 Jul 2010 14:26:46 -0000 From: Pedro Alves To: Daniel Jacobowitz Subject: Disable i18n when running the testsuite (Re: ping: [patch 5/6] testsuite: Fix prelink-support.exp without prelink installed) Date: Wed, 28 Jul 2010 14:26:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.32-24-generic; KDE/4.4.2; x86_64; ; ) Cc: gdb-patches@sourceware.org, Jan Kratochvil , Joel Brobecker References: <20100329161831.GD2940@host0.dyn.jankratochvil.net> <201007191606.29992.pedro@codesourcery.com> <20100719154257.GA26454@caradoc.them.org> In-Reply-To: <20100719154257.GA26454@caradoc.them.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201007281526.43503.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-07/txt/msg00479.txt.bz2 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 * 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]; }