From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27762 invoked by alias); 31 Aug 2010 16:47:19 -0000 Received: (qmail 27752 invoked by uid 22791); 31 Aug 2010 16:47:18 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 31 Aug 2010 16:47:13 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o7VGl7AO028461 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 31 Aug 2010 12:47:08 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o7VGl7Bg020567; Tue, 31 Aug 2010 12:47:07 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o7VGl6dE017179; Tue, 31 Aug 2010 12:47:06 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id C4F643792BC; Tue, 31 Aug 2010 10:47:05 -0600 (MDT) From: Tom Tromey To: "Pierre Muller" Cc: Subject: Re: Your INTERMEDIATE_ENCODING patch for Solaris References: <20100731162500.32FAE5664F4@henry1.codesourcery.com> <20100817184407.GC3599@adacore.com> <20100818101406.GA2903@adacore.com> <15264.6257346079$1282142643@news.gmane.org> <004b01cb3faf$b07ed580$117c8080$@muller@ics-cnrs.unistra.fr> <001b01cb48ee$6b8425f0$428c71d0$@muller@ics-cnrs.unistra.fr> Date: Tue, 31 Aug 2010 16:47:00 -0000 In-Reply-To: <001b01cb48ee$6b8425f0$428c71d0$@muller@ics-cnrs.unistra.fr> (Pierre Muller's message of "Tue, 31 Aug 2010 11:25:14 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 X-SW-Source: 2010-08/txt/msg00550.txt.bz2 >>>>> "Pierre" == Pierre Muller writes: Pierre> After searching, it appears that the problem comes from the fact Pierre> that /usr/local/include is searched before /usr/include, Pierre> while /usr/local/lib is not searched at all for libraries. Yuck. This setup seems unfortunate but I don't think there is much gdb should do about it. Pierre> Test machine #3 x86_64 prcoessor: [...] Pierre> So this one uses c library iconv. Pierre> (top-gdb) p version Pierre> $1 = Pierre> (top-gdb) inf fun iconv Pierre> All functions matching regular expression "iconv": Pierre> So here, the c library iconv functions are used, Pierre> but the default host-charset is set to ASCII which is Pierre> not handled by that iconv :( I am not sure how this happens with the patch I posted. Does this machine define __STDC_ISO_10646__? Or did I somehow get the #if logic wrong? Pierre> So I would like to have the default host and target Pierre> charset changed to UTF-8. What does nl_langinfo(CODESET) return on this sytem? If you remove the special "646" case, does it work? Tom