From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32329 invoked by alias); 16 Jan 2009 16:40:34 -0000 Received: (qmail 32298 invoked by uid 22791); 16 Jan 2009 16:40:33 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout6.012.net.il (HELO mtaout6.012.net.il) (84.95.2.16) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Jan 2009 16:39:47 +0000 Received: from conversion-daemon.i-mtaout6.012.net.il by i-mtaout6.012.net.il (HyperSendmail v2007.08) id <0KDK00800OS2NZ00@i-mtaout6.012.net.il> for gdb-patches@sourceware.org; Fri, 16 Jan 2009 18:39:35 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.144.144]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KDK00N35OXV4Z90@i-mtaout6.012.net.il>; Fri, 16 Jan 2009 18:39:32 +0200 (IST) Date: Fri, 16 Jan 2009 16:40:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH/WIP] C/C++ wchar_t/Unicode printing support In-reply-to: To: tromey@redhat.com Cc: julian@codesourcery.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: References: <20090115202411.5f154657@rex.config> 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: 2009-01/txt/msg00386.txt.bz2 > 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.