Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: Daniel Jacobowitz <dan@codesourcery.com>
Cc: gdb-patches@sourceware.org,
	Jan Kratochvil <jan.kratochvil@redhat.com>,
	Joel Brobecker <brobecker@adacore.com>
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	[thread overview]
Message-ID: <201007281526.43503.pedro@codesourcery.com> (raw)
In-Reply-To: <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];
 }
 


  reply	other threads:[~2010-07-28 14:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-29 16:18 [patch 5/6] testsuite: Fix prelink-support.exp without prelink installed Jan Kratochvil
2010-06-09 15:10 ` ping: " Jan Kratochvil
2010-06-29 22:09   ` Joel Brobecker
2010-07-04 10:19     ` Jan Kratochvil
2010-07-05 17:40       ` Joel Brobecker
2010-07-05 18:13         ` Jan Kratochvil
2010-07-19 15:06       ` Pedro Alves
2010-07-19 15:43         ` Daniel Jacobowitz
2010-07-28 14:26           ` Pedro Alves [this message]
2010-07-28 17:36             ` Disable i18n when running the testsuite (Re: ping: [patch 5/6] testsuite: Fix prelink-support.exp without prelink installed) Joel Brobecker
2010-07-29 14:20               ` Disable i18n when running the testsuite Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201007281526.43503.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=brobecker@adacore.com \
    --cc=dan@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox