From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15769 invoked by alias); 5 Jan 2003 17:05:09 -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 15755 invoked from network); 5 Jan 2003 17:05:08 -0000 Received: from unknown (HELO mout1.freenet.de) (194.97.50.132) by 209.249.29.67 with SMTP; 5 Jan 2003 17:05:08 -0000 Received: from [194.97.55.147] (helo=mx4.freenet.de) by mout1.freenet.de with asmtp (Exim 4.10) id 18VECm-0008Ul-00 for gdb-patches@sources.redhat.com; Sun, 05 Jan 2003 18:04:56 +0100 Received: from affa8.pppool.de ([213.6.255.168] helo=whitebox.local) by mx4.freenet.de with esmtp (Exim 4.10 #1) id 18VECm-000229-00 for gdb-patches@sources.redhat.com; Sun, 05 Jan 2003 18:04:56 +0100 Received: from whitebox.local (localhost [127.0.0.1]) by whitebox.local (8.12.6/8.12.6/SuSE Linux 0.6) with ESMTP id h05G62IF024936 for ; Sun, 5 Jan 2003 17:06:03 +0100 Received: (from andreas@localhost) by whitebox.local (8.12.6/8.12.6/Submit) id h05G611Z024894; Sun, 5 Jan 2003 17:06:01 +0100 X-Authentication-Warning: whitebox.local: andreas set sender to schwab@suse.de using -f To: gdb-patches@sources.redhat.com Subject: Spurious testsuite failures due to multibyte locale X-Yow: Is this ANYWHERE, USA? From: Andreas Schwab Date: Sun, 05 Jan 2003 17:05:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-01/txt/msg00184.txt.bz2 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. Andreas. 2003-01-05 Andreas Schwab * lib/gdb.exp: Set LC_ALL to "C" to avoid spurious testsuite failures. --- gdb/testsuite/lib/gdb.exp.~1.30.~ 2002-12-16 21:06:23.000000000 +0100 +++ gdb/testsuite/lib/gdb.exp 2003-01-05 16:58:06.000000000 +0100 @@ -1,4 +1,4 @@ -# Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 +# Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2003 # Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify @@ -63,6 +63,9 @@ if ![info exists env(EXEEXT)] { set EXEEXT $env(EXEEXT) } +# Make sure we are using the C locale. +set env(LC_ALL) "C" + ### Only procedures should come after this point. #