From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30882 invoked by alias); 1 Sep 2010 22:22:09 -0000 Received: (qmail 30871 invoked by uid 22791); 1 Sep 2010 22:22:08 -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; Wed, 01 Sep 2010 22:22:03 +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.13.8/8.13.8) with ESMTP id o81MLwSw030939 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 1 Sep 2010 18:21:59 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o81MLw7d003491; Wed, 1 Sep 2010 18:21:58 -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 o81MLurV005847; Wed, 1 Sep 2010 18:21:57 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 8ED34379677; Wed, 1 Sep 2010 16:21:56 -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> <44796.6229789474$1283326243@news.gmane.org> Date: Wed, 01 Sep 2010 22:35:00 -0000 In-Reply-To: <44796.6229789474$1283326243@news.gmane.org> (Pierre Muller's message of "Wed, 1 Sep 2010 09:30:11 +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-09/txt/msg00068.txt.bz2 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 :( Tom> I am not sure how this happens with the patch I posted. Tom> Does this machine define __STDC_ISO_10646__? Tom> Or did I somehow get the #if logic wrong? I didn't see an answer to this. I still don't understand how this particular build is using iconv and not the phony iconv. Pierre> I do get a default of '"UTF-8" for Open Solaris machines, Pierre> but I don't know if other systems might also return "646", Pierre> but not like the "UTF-8" choice. AFAIK only Solaris does this. It seems to me that UTF-8 is not correct, though -- it may vary by locale. Maybe we need to go even further and blacklist Solaris from ever using iconv :-(. It would help to know the answer to the above. Tom