From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14863 invoked by alias); 16 Jan 2009 16:57:07 -0000 Received: (qmail 14855 invoked by uid 22791); 16 Jan 2009 16:57:06 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Jan 2009 16:56:29 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id n0GGrWSX024823; Fri, 16 Jan 2009 17:53:32 +0100 (CET) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id n0GGrVr4031573; Fri, 16 Jan 2009 17:53:31 +0100 (CET) Date: Fri, 16 Jan 2009 16:57:00 -0000 Message-Id: <200901161653.n0GGrVr4031573@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: eliz@gnu.org CC: tromey@redhat.com, julian@codesourcery.com, gdb-patches@sourceware.org In-reply-to: (message from Eli Zaretskii on Fri, 16 Jan 2009 18:39:23 +0200) Subject: Re: [PATCH/WIP] C/C++ wchar_t/Unicode printing support References: <20090115202411.5f154657@rex.config> 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/msg00387.txt.bz2 > Date: Fri, 16 Jan 2009 18:39:23 +0200 > From: Eli Zaretskii > > > Cc: Julian Brown , gdb-patches@sourceware.org > > From: Tom Tromey > > Date: Fri, 16 Jan 2009 09:15:39 -0700 > > > > >>>>> "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. > > Then let's put this in defs.h, with suitable defaults for at least the > popular platforms. For the target wide character set, the gdbarch vector is probably the proper place.