From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10430 invoked by alias); 15 Apr 2009 19:20:59 -0000 Received: (qmail 10416 invoked by uid 22791); 15 Apr 2009 19:20:58 -0000 X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_JMF_BL,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout3.012.net.il (HELO mtaout3.012.net.il) (84.95.2.7) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Apr 2009 19:20:45 +0000 Received: from conversion-daemon.i_mtaout3.012.net.il by i_mtaout3.012.net.il (HyperSendmail v2004.12) id <0KI500L00POAH500@i_mtaout3.012.net.il> for gdb-patches@sources.redhat.com; Wed, 15 Apr 2009 22:20:42 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.34.97]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KI500BAYPQHXKH0@i_mtaout3.012.net.il>; Wed, 15 Apr 2009 22:20:42 +0300 (IDT) Date: Wed, 15 Apr 2009 19:20:00 -0000 From: Eli Zaretskii Subject: Re: Configuring gdb_wchar.h In-reply-to: To: Tom Tromey Cc: gdb-patches@sources.redhat.com Reply-to: Eli Zaretskii Message-id: <83myahlo4t.fsf@gnu.org> References: <8363hboz5x.fsf@gnu.org> <833acbo32k.fsf@gnu.org> <83myajma7a.fsf@gnu.org> <83iql7m7r1.fsf@gnu.org> <83hc0rm1mh.fsf@gnu.org> <8363h6mdue.fsf@gnu.org> <833acam2wl.fsf@gnu.org> <83zleikk46.fsf@gnu.org> 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-04/txt/msg00342.txt.bz2 > Cc: gdb-patches@sources.redhat.com > From: Tom Tromey > Date: Wed, 15 Apr 2009 12:03:57 -0600 > > If there is a way to detect the current DOS codepage, and if that is > equivalent to the notion of the host charset (I don't know), then we > could put the needed code into _initialize_charset. There's a system call to do that, yes. Perhaps I should just write a limited emulation of nl_langinfo which will do the job. That would avoid ugly system-dependent code in charset.c. WDYT? > Eli> GDB 6.8 shows ISO-8859-1 for both character sets, FWIW. > > Tom> 6.8 did no auto-detection at all and had ISO-8859-1 coded in. > Tom> I changed the default to UTF-8 because that is increasingly common. > > Eli> We need to document all that, I think. I will give it a shot if no > Eli> one beats me to it. > > How about the appended? Fine with me, thanks.