From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30086 invoked by alias); 15 Apr 2009 19:53:00 -0000 Received: (qmail 30072 invoked by uid 22791); 15 Apr 2009 19:52:59 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Apr 2009 19:52:54 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n3FJqqQs005038 for ; Wed, 15 Apr 2009 15:52:52 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n3FJqqmu011077 for ; Wed, 15 Apr 2009 15:52:52 -0400 Received: from opsy.redhat.com (vpn-13-166.rdu.redhat.com [10.11.13.166]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n3FJqp1n018007; Wed, 15 Apr 2009 15:52:51 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 066A050830B; Wed, 15 Apr 2009 13:52:51 -0600 (MDT) To: Eli Zaretskii Cc: gdb-patches@sources.redhat.com Subject: Re: Configuring gdb_wchar.h 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> From: Tom Tromey Reply-To: Tom Tromey Date: Wed, 15 Apr 2009 19:53:00 -0000 In-Reply-To: <83myahlo4t.fsf@gnu.org> (Eli Zaretskii's message of "Wed\, 15 Apr 2009 22\:20\:50 +0300") 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-04/txt/msg00348.txt.bz2 >>>>> "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. Tom