From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23977 invoked by alias); 5 Jan 2003 17:35:13 -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 23969 invoked from network); 5 Jan 2003 17:35:11 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 209.249.29.67 with SMTP; 5 Jan 2003 17:35:11 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18VGYa-00021V-00 for ; Sun, 05 Jan 2003 13:35:36 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18VEg5-0000jT-00 for ; Sun, 05 Jan 2003 12:35:13 -0500 Date: Sun, 05 Jan 2003 17:35:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: Re: Spurious testsuite failures due to multibyte locale Message-ID: <20030105173513.GA2779@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com References: <200301051728.h05HSp119547@duracef.shout.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200301051728.h05HSp119547@duracef.shout.net> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-01/txt/msg00188.txt.bz2 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. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer