From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7313 invoked by alias); 19 Jul 2010 15:06:40 -0000 Received: (qmail 7295 invoked by uid 22791); 19 Jul 2010 15:06:39 -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; Mon, 19 Jul 2010 15:06:34 +0000 Received: (qmail 23212 invoked from network); 19 Jul 2010 15:06:32 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 19 Jul 2010 15:06:32 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: ping: [patch 5/6] testsuite: Fix prelink-support.exp without prelink installed Date: Mon, 19 Jul 2010 15:06:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.31-11-rt; KDE/4.4.2; x86_64; ; ) Cc: Jan Kratochvil , Joel Brobecker References: <20100329161831.GD2940@host0.dyn.jankratochvil.net> <20100629220904.GV2595@adacore.com> <20100704101842.GE6875@host0.dyn.jankratochvil.net> In-Reply-To: <20100704101842.GE6875@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201007191606.29992.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/msg00281.txt.bz2 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? >=20 > GDB testsuite does not force English, neither dejagnu. But TCL seems to > ignore locale: > $ LANG=3Dcs_CZ LC_ALL=3Dcs_CZ tclsh > % exec /foo > couldn't execute "/foo": no such file or directory >=20 [...] 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=EDmbolos de /home/pedro/gdb/baseline/build/gdb/testsuite/gdb.base/g= core...conclu=EDdo. (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.) --=20 Pedro Alves