From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20698 invoked by alias); 4 May 2010 12:16:12 -0000 Received: (qmail 20685 invoked by uid 22791); 4 May 2010 12:16:09 -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; Tue, 04 May 2010 12:16:05 +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; 04 May 2010 07:16:02 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable x-cr-hashedpuzzle: Bbhy B6Gj CUFW CbDq C/PC EY18 E4Zv GH73 GMbU HDFD HF7j IcIb IxW+ I0u0 I5dO JKmu;1;ZwBkAGIAQABzAG8AdQByAGMAZQB3AGEAcgBlAC4AbwByAGcA;Sosha1_v1;7;{81853CCC-3D4D-45CC-993B-9542FD102950};cABhAHUAbABfAGsAbwBuAGkAbgBnAEAAZABlAGwAbAAuAGMAbwBtAA==;Tue, 04 May 2010 12:15:56 GMT;aQBjAG8AbgB2ACAAdwBpAHQAaABvAHUAdAAgACIAdwBjAGgAYQByAF8AdAAiACAAYQBzACAAYQAgAGMAbwBuAHYAZQByAHMAaQBvAG4AIABuAGEAbQBlAA== x-cr-puzzleid: {81853CCC-3D4D-45CC-993B-9542FD102950} Content-class: urn:content-classes:message Subject: iconv without "wchar_t" as a conversion name Date: Tue, 04 May 2010 12:16:00 -0000 Message-ID: From: "Paul Koning" To: 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: 2010-05/txt/msg00008.txt.bz2 NetBSD has iconv support, essentially the same as in glibc, with one crucial difference that messes up GDB. In gdb_wchar.h, INTERMEDIATE_ENCODING is hardcoded as "wchar_t" and in charset.c iconv_open() is called with INTERMEDIATE_ENCODING as the "to" format. As it happens, the NetBSD implementation of iconf does not list "wchar_t" as a format it knows, though it does have a very long list of supported formats that looks otherwise quite similar to what iconv on, say, Linux supports. I assume "wchar_t" means "whatever character format is the native encoding of a wchar_t data type". If so, it looks like "ucs-4" would be a valid replacement, since wchar_t maps to int on NetBSD. This suggest that INTERMEDIATE_ENCODING should be determined by configure instead of being hardcoded. Does this make sense? I can work on a patch, though hints on how to do this in configure would be welcome since I'm a beginner in that space. paul=20