From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6470 invoked by alias); 6 Jan 2003 18:17:27 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 6456 invoked from network); 6 Jan 2003 18:17:22 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by 209.249.29.67 with SMTP; 6 Jan 2003 18:17:22 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h06HncB06869 for ; Mon, 6 Jan 2003 12:49:38 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h06IHAa27349; Mon, 6 Jan 2003 13:17:10 -0500 Received: from localhost.redhat.com (romulus-int.sfbay.redhat.com [172.16.27.46]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h06IH9n13928; Mon, 6 Jan 2003 13:17:10 -0500 Received: by localhost.redhat.com (Postfix, from userid 469) id 03FAFFF79; Mon, 6 Jan 2003 13:21:31 -0500 (EST) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15897.51499.389985.860056@localhost.redhat.com> Date: Mon, 06 Jan 2003 18:17:00 -0000 To: Daniel Jacobowitz , fnasser@redhat.com Cc: gdb-patches@sources.redhat.com Subject: Re: Spurious testsuite failures due to multibyte locale In-Reply-To: <20030105173513.GA2779@nevyn.them.org> References: <200301051728.h05HSp119547@duracef.shout.net> <20030105173513.GA2779@nevyn.them.org> X-SW-Source: 2003-01/txt/msg00217.txt.bz2 Daniel Jacobowitz writes: > On Sun, Jan 05, 2003 at 11:28:51AM -0600, Michael Elizabeth Chastain wrote: > > Andreas Schwab writes: > > > I'm getting numerous spurious testsuite failures when running in a > > > multibyte locale like utf8 because the version of readline included in > > > gdb forces the command line to be always redrawn completely when > > > running in a multibyte locale. The output of the prompt will look > > > like "\r\n\r\r(gdb) \r(gdb) " which won't be matched by $gdb_prompt. > > > > Me too: > > > > http://sources.redhat.com/ml/gdb-patches/2002-12/msg00294.html > > > > At first I thought it was an artifact of my test bed configuration, but > > I've straightened out my test bed and it still happens. This is with > > host=i686-pc-linux-gnu, osversion=red-hat-8.0, with $LANG=en_us.UTF-8. > > > > I work around it now by setting $LANG=en_us when I run the test suite. > > > > > -# Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 > > > +# Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2003 > > > > As long as you are touching this line, can you add 2001 and 2002 > > to the copyright years? I checked "cvs log gdb.exp" and there > > were plenty of changes during those two years. > > Did this yesterday :) > > > > +# Make sure we are using the C locale. > > > +set env(LC_ALL) "C" > > > + > > > > Seems okay to me but I don't have the resources to test it right now. > > > > I've appended my brain dump just in case anyone is curious. > > It's on my TODO list to write a small "readline" test program and > > file a bug report with the readline maintainers. > > I'm inclined to agree. Tests which want to test something locale > related can do so explicitly. Andreas, if no one objects in the next > day or so, please check this in. > > I am not objecting at all, but I think Fernando should have the last word. Not that I think he will object either... Elena > -- > Daniel Jacobowitz > MontaVista Software Debian GNU/Linux Developer