From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18799 invoked by alias); 15 Apr 2009 20:18:06 -0000 Received: (qmail 18789 invoked by uid 22791); 15 Apr 2009 20:18:05 -0000 X-SWARE-Spam-Status: No, hits=-1.3 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; Wed, 15 Apr 2009 20:18:00 +0000 Received: from conversion-daemon.i-mtaout6.012.net.il by i-mtaout6.012.net.il (HyperSendmail v2007.08) id <0KI500800SBXYF00@i-mtaout6.012.net.il> for gdb-patches@sources.redhat.com; Wed, 15 Apr 2009 23:17:33 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.34.97]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KI500HU3SD8SO80@i-mtaout6.012.net.il>; Wed, 15 Apr 2009 23:17:33 +0300 (IDT) Date: Wed, 15 Apr 2009 20:18: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: <83hc0plli1.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> <83myahlo4t.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/msg00350.txt.bz2 > Cc: gdb-patches@sources.redhat.com > From: Tom Tromey > Date: Wed, 15 Apr 2009 13:52:50 -0600 > > >>>>> "Eli" == Eli Zaretskii writes: > > Tom> If there is a way to detect the current DOS codepage, and if that is > Tom> equivalent to the notion of the host charset (I don't know), then we > Tom> could put the needed code into _initialize_charset. > > Eli> There's a system call to do that, yes. Perhaps I should just write a > Eli> limited emulation of nl_langinfo which will do the job. That would > Eli> avoid ugly system-dependent code in charset.c. WDYT? > > Either way is fine by me. > > libiconv also includes "libcharset", which includes a locale_charset > function to do this. So, we could use that if it is available. I > couldn't immediately tell when that was added to the libiconv package. OK, I will look into both possibilities and see what I come up with. Thanks.