From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13381 invoked by alias); 16 Jan 2009 16:18:25 -0000 Received: (qmail 13371 invoked by uid 22791); 16 Jan 2009 16:18:24 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,KAM_MX,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Jan 2009 16:17:48 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n0GGFhQC030350; Fri, 16 Jan 2009 11:15:43 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n0GGFhAc021596; Fri, 16 Jan 2009 11:15:43 -0500 Received: from opsy.redhat.com (vpn-13-28.rdu.redhat.com [10.11.13.28]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n0GGFgN6003097; Fri, 16 Jan 2009 11:15:42 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id A82A037813B; Fri, 16 Jan 2009 09:15:40 -0700 (MST) To: Eli Zaretskii Cc: Julian Brown , gdb-patches@sourceware.org Subject: Re: [PATCH/WIP] C/C++ wchar_t/Unicode printing support References: <20090115202411.5f154657@rex.config> From: Tom Tromey Reply-To: tromey@redhat.com Date: Fri, 16 Jan 2009 16:18:00 -0000 In-Reply-To: (Eli Zaretskii's message of "Fri\, 16 Jan 2009 11\:36\:11 +0200") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.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: 2009-01/txt/msg00384.txt.bz2 >>>>> "Eli" == Eli Zaretskii writes: >> + #ifndef GDB_DEFAULT_TARGET_WIDE_CHARSET >> + #define GDB_DEFAULT_TARGET_WIDE_CHARSET "UTF-32" >> + #endif >> + >> + #ifndef GDB_INTERNAL_CODESET >> + #define GDB_INTERNAL_CODESET "UCS-4LE" >> + #endif Eli> Why are these the defaults? because of what GNU/Linux (i.e. glibc) Eli> does, or for some other reason? If the former, shouldn't this be Eli> autoconfigured? I don't think there is a way to auto-configure the target wide charset. Perhaps we could have a new target method to discover it, when that is possible. Even with that change, though, we would still need a default. UCS-4 was also the choice I made for this in my patch, due to glibc. For the internal codeset ... this is just a choice in this patch, for target_char_to_internal. There's no reason to add configury for this, as it is not host-dependent. Tom