From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 559 invoked by alias); 5 Mar 2012 18:09:24 -0000 Received: (qmail 548 invoked by uid 22791); 5 Mar 2012 18:09:21 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SARE_SUB_ENC_UTF8,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; Mon, 05 Mar 2012 18:09: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 q25I8xOp024361 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 5 Mar 2012 13:08:59 -0500 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q25I8vXo007308 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 5 Mar 2012 13:08:58 -0500 From: Tom Tromey To: Cc: , Subject: Re: Using UTF-8 as host charset References: <4F52480A.6000507@gmail.com> <09787EF419216C41A903FD14EE5506DD03138CBD68@AUSX7MCPC103.AMER.DELL.COM> Date: Mon, 05 Mar 2012 18:09:00 -0000 In-Reply-To: <09787EF419216C41A903FD14EE5506DD03138CBD68@AUSX7MCPC103.AMER.DELL.COM> (Paul Koning's message of "Mon, 5 Mar 2012 10:12:51 -0600") Message-ID: <87mx7ux6mf.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-03/txt/msg00009.txt.bz2 >>>>> "Paul" == writes: Paul> While it doesn't use phony iconv, there are some other questions that Paul> have come up on this in the past. NetBSD (and possibly others) have Paul> an iconv implementation that doesn't provide the "wchar_t" encoding Paul> GDB assumes every iconv will have. I remember trying to do something Paul> about this and running into concerns that wchar_t, formally speaking, Paul> is not the same as UCS-2 even though for practical purposes the two Paul> are interchangeable. I guess NetBSD should use libiconv. We could in theory write a portable "phony libiconv" that uses the standard C wide/multi-byte conversion functions. But... libiconv already did this, so it seemed simpler to just reuse it rather than try to write our own. Tom