public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: Jan Kratochvil <jan.kratochvil@redhat.com>,
	Joel Brobecker <brobecker@adacore.com>
Subject: Re: ping: [patch 5/6] testsuite: Fix prelink-support.exp without prelink installed
Date: Mon, 19 Jul 2010 15:06:00 -0000	[thread overview]
Message-ID: <201007191606.29992.pedro@codesourcery.com> (raw)
In-Reply-To: <20100704101842.GE6875@host0.dyn.jankratochvil.net>

On Sunday 04 July 2010 11:18:42, Jan Kratochvil wrote:
> On Wed, 30 Jun 2010 00:09:04 +0200, Joel Brobecker wrote:
> > I'm just concerned about matching the output
> > from the prelink command, since it is assuming that it is going to
> > be in English. Do you know if we force the language in the testsuite?
> 
> GDB testsuite does not force English, neither dejagnu.  But TCL seems to
> ignore locale:
> $ LANG=cs_CZ LC_ALL=cs_CZ tclsh
> % exec /foo
> couldn't execute "/foo": no such file or directory
> 

[...]

On a related note: ubuntu/debian's system gdb includes some half cooked
up gdb translations; I often forget it, and since a newly built gdb picks
up the system .po's, the whole testsuite falls over, tripping on translated
strings not matching the expected output:

$ echo $LANG
pt_PT.UTF-8

$ make check
:
:
(gdb) file /home/pedro/gdb/baseline/build/gdb/testsuite/gdb.base/gcore
Lendo símbolos de /home/pedro/gdb/baseline/build/gdb/testsuite/gdb.base/gcore...concluído.
(gdb) ERROR: couldn't load /home/pedro/gdb/baseline/build/gdb/testsuite/gdb.base/gcore into /home/pedro/gdb/baseline/build/gdb/testsuite/../../gdb/gdb.
:
:

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?
(Of course, people on other distros would see this as well if we
had "official" translations.)

-- 
Pedro Alves

  parent reply	other threads:[~2010-07-19 15:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-29 16:18 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 [this message]
2010-07-19 15:43         ` Daniel Jacobowitz
2010-07-28 14:26           ` Disable i18n when running the testsuite (Re: ping: [patch 5/6] testsuite: Fix prelink-support.exp without prelink installed) Pedro Alves
2010-07-28 17:36             ` 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=201007191606.29992.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=brobecker@adacore.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).