This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Spurious testsuite failures due to multibyte locale
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