From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18977 invoked by alias); 5 Jun 2014 09:58:57 -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 18968 invoked by uid 89); 5 Jun 2014 09:58:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Jun 2014 09:58:56 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1WsURg-0006u4-2g from Yao_Qi@mentor.com ; Thu, 05 Jun 2014 02:58:52 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 5 Jun 2014 02:58:51 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.2.247.3; Thu, 5 Jun 2014 02:58:51 -0700 Message-ID: <53903EE5.8090107@codesourcery.com> Date: Thu, 05 Jun 2014 09:58:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Pedro Alves CC: Tom Tromey , Joel Brobecker , 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> In-Reply-To: <53903119.6000204@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00246.txt.bz2 On 06/05/2014 04:58 PM, Pedro Alves wrote: >> 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. > OK, it is a remote host testing issue, since LC_CTYPE is set on build only. >> > 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 > Yes, it is simple to pass env variable through ssh, but isn't trivial to pass env variable to host or target in dejagnu, because, - ssh is not the only connection dejagnu supports, how about telnet? - env variable should bind to board. host and target can have different env vars. I saw Jie's patch to set env var on target http://lists.gnu.org/archive/html/dejagnu/2008-07/msg00000.html but we need do more than that, IMO. That is the reason I am inclined to fix the test case instead of the infrastructure (dejagnu). >> > >>> >> 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? I don't know how check LC_CTYPE on Windows. :( -- Yao (齐尧)