From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1867 invoked by alias); 5 Jun 2014 08:58:10 -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 1855 invoked by uid 89); 5 Jun 2014 08:58:09 -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, 05 Jun 2014 08:58:08 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s558w4AP007486 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 5 Jun 2014 04:58:04 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id s558w1ZA007084; Thu, 5 Jun 2014 04:58:03 -0400 Message-ID: <53903119.6000204@redhat.com> Date: Thu, 05 Jun 2014 08:58: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: Yao Qi CC: Tom Tromey , Joel Brobecker , 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> In-Reply-To: <538FE412.1050806@codesourcery.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SW-Source: 2014-06/txt/msg00239.txt.bz2 On 06/05/2014 04:29 AM, Yao Qi wrote: > On 06/05/2014 04:23 AM, Pedro Alves wrote: >>>> I am not really a great standards lawyer but my first reaction is that >>>> mingw's C locale is not conforming. At least from: >>>> >>>> http://pubs.opengroup.org/onlinepubs/009604499/basedefs/xbd_chap07.html >>>> >>>> .. it seems to me that \242 is not defined as a 'print' character in the >>>> LC_CTYPE section. Though I'd like to reiterate that I don't actually >>>> trust my own reading of that text. >> I wonder whether this is really a mingw issue, or whether this is a >> remote host testing issue. That is, aren't we setting LC_CTYPE >> on the _build_ (where expect runs), not on the host (mingw, through > > This is a not a mingw issue nor a remote host testing issue. But that's a conflicting answer. It's a remote host testing if this only triggers with remote host testing. > If the > LC_CTYPE isn't set properly on host, these tests will fail, even in the > native testing. Sure, but it's supposed to be set, and then tests can assume so. If not set in some circumstance, then it's a bug in the test infrustruture, not the test. For native testing, those are set by gdb.exp:gdb_init. > >> ssh)? Is LC_CTYPE really being propagated to the host? > > No, setting env variables on host or target in dejagnu isn't trivial to > me. They need to be passed down explicitly in the ssh command line: $ ssh localhost "FOO=1 env | grep FOO" FOO=1 > >> Does testing GDB manually directly on a Windows console show the same >> issue? > > Yes, here is the output I got on Windows 7 (running gdb.exe in Windows console). > However, I didn't investigate why 'ó' is printed. But was that with LC_CTYPE set to C? -- Pedro Alves