From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20811 invoked by alias); 12 Jun 2014 18:06:03 -0000 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 Received: (qmail 20801 invoked by uid 89); 12 Jun 2014 18:06:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Jun 2014 18:06:01 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5CI5um3023676 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Jun 2014 14:05:56 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s5CI5r7g017359; Thu, 12 Jun 2014 14:05:54 -0400 Message-ID: <5399EC00.4000601@redhat.com> Date: Thu, 12 Jun 2014 18:06:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Eli Zaretskii CC: yao@codesourcery.com, tromey@redhat.com, brobecker@adacore.com, gdb-patches@sourceware.org Subject: Re: [ping] [PATCH] Different outputs affected by locale References: <1401192650-29688-1-git-send-email-yao@codesourcery.com> <538EAEE5.2080708@codesourcery.com> <20140604124708.GR4289@adacore.com> <538F1CC3.9090605@codesourcery.com> <87oay8a0t6.fsf@fleche.redhat.com> <538F803A.9020007@redhat.com> <538FE412.1050806@codesourcery.com> <53903119.6000204@redhat.com> <53903EE5.8090107@codesourcery.com> <539042A2.4050409@redhat.com> <539571C6.40605@codesourcery.com> <53958862.5020106@redhat.com> <5397BCEC.8080300@codesourcery.com> <539990BD.9020504@redhat.com> <83tx7qxdg6.fsf@gnu.org> <5399E2D7.3060705@redhat.com> <83ioo6xbk2.fsf@gnu.org> In-Reply-To: <83ioo6xbk2.fsf@gnu.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2014-06/txt/msg00518.txt.bz2 On 06/12/2014 06:49 PM, Eli Zaretskii wrote: >> Date: Thu, 12 Jun 2014 18:26:47 +0100 >> From: Pedro Alves >> CC: yao@codesourcery.com, tromey@redhat.com, brobecker@adacore.com, gdb-patches@sourceware.org >> >>> What do you mean by "behaves as expected"? And why is LC_TYPE >>> important here? >> >> I think I've answered this in my response to Yao. > > Not really, but you don't have to explain as long as the original > problem is solved. Trying again then. The testsuite framework does, in gdb.exp:gdb_init: # We set LC_ALL, LC_CTYPE, and LANG to C so that we get the same # messages as expected. setenv LC_ALL C setenv LC_CTYPE C setenv LANG C ... so that output is stable for everyone. And if we do that, we miss making sure GDB works correctly with locales/charsets other than C/ASCII on most hosts. So I was just saying that IMO ideally we'd have tests that make sure GDB prints what we think it should print when LC_CTYPE (etc.) is set to something else, like e.g., en_US.UTF-8. Does that answer the question? -- Pedro Alves