From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3165 invoked by alias); 5 Mar 2012 18:11:48 -0000 Received: (qmail 3146 invoked by uid 22791); 5 Mar 2012 18:11:46 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SARE_SUB_ENC_UTF8,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from ausc60pc101.us.dell.com (HELO ausc60pc101.us.dell.com) (143.166.85.206) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 05 Mar 2012 18:11:33 +0000 X-Loopcount0: from 10.170.28.40 From: To: CC: , Date: Mon, 05 Mar 2012 18:11:00 -0000 Subject: RE: Using UTF-8 as host charset Message-ID: <09787EF419216C41A903FD14EE5506DD03138CBF87@AUSX7MCPC103.AMER.DELL.COM> References: <4F52480A.6000507@gmail.com> <09787EF419216C41A903FD14EE5506DD03138CBD68@AUSX7MCPC103.AMER.DELL.COM> <87mx7ux6mf.fsf@fleche.redhat.com> In-Reply-To: <87mx7ux6mf.fsf@fleche.redhat.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes 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/msg00011.txt.bz2 The issue here is that NetBSD has a fully functional iconv, except that it = doesn't include the wchar_t "character set". I think it has something to d= o with the notion that wchar_t is not the same as ucs-2, at least not in so= me corner cases. I'm not particularly convinced, especially since GNU libi= conv does make that exact equivalence. paul -----Original Message----- From: Tom Tromey [mailto:tromey@redhat.com]=20 Sent: Monday, March 05, 2012 1:09 PM To: Koning, Paul Cc: mathiaskunter@gmail.com; gdb@sourceware.org Subject: Re: Using UTF-8 as host charset >>>>> "Paul" =3D=3D writes: Paul> While it doesn't use phony iconv, there are some other questions=20 Paul> that have come up on this in the past. NetBSD (and possibly=20 Paul> others) have an iconv implementation that doesn't provide the=20 Paul> "wchar_t" encoding GDB assumes every iconv will have. I remember=20 Paul> trying to do something about this and running into concerns that=20 Paul> wchar_t, formally speaking, is not the same as UCS-2 even though=20 Paul> for practical purposes the two 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