From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20702 invoked by alias); 19 May 2010 15:11:52 -0000 Received: (qmail 20681 invoked by uid 22791); 19 May 2010 15:11:50 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from aussmtpmrkps320.us.dell.com (HELO aussmtpmrkps320.us.dell.com) (143.166.224.254) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 May 2010 15:11:45 +0000 X-Loopcount0: from 12.110.134.31 Received: from unknown (HELO M31.equallogic.com) ([12.110.134.31]) by aussmtpmrkps320.us.dell.com with SMTP; 19 May 2010 10:11:43 -0500 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [RFC] Make string printing work on NetBSD (iconv issue) Date: Wed, 19 May 2010 15:25:00 -0000 Message-ID: In-Reply-To: References: <19424.30941.651367.946330@pkoning-laptop.equallogic.com> From: "Paul Koning" To: Cc: X-IsSubscribed: yes 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-05/txt/msg00389.txt.bz2 That gnu.org webpage talks about FreeBSD which is a different OS, and what it says may or may not apply to NetBSD. I guess I will have to ask about this, since looking at the newlib sources (which is what libc is in NetBSD) only got me lost. paul > -----Original Message----- > From: Tom Tromey [mailto:tromey@redhat.com] > Sent: Wednesday, May 19, 2010 11:07 AM > To: Paul Koning > Cc: gdb-patches@sourceware.org > Subject: Re: [RFC] Make string printing work on NetBSD (iconv issue) >=20 > >>>>> "Paul" =3D=3D Paul Koning writes: >=20 > Paul> NetBSD clearly is using UCS-4 for wchar_t, but it does not define > that > Paul> symbol. >=20 > I have been wondering about this again recently. >=20 > I dug through the NetBSD libc a little, looking for this, but I > couldn't > find it. Then I ran across this page today: >=20 >=20 > http://www.gnu.org/software/libunistring/manual/libunistring.html#The- > wchar_005ft-mess >=20 > This claims that, like Solaris, NetBSD uses a locale-dependent wchar_t > encoding. If this is the case then disabling the wide character code > is > probably the simplest approach that will do something sensible for you. >=20 > BTW, libunistring seems like a nice approach. It is close to what I > wish wchar_t support actually looked like. I am tempted to say we > should go that route, but of course that would mean adding another > dependency :-( >=20 > Tom