From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24106 invoked by alias); 28 Feb 2010 17:45:17 -0000 Received: (qmail 24091 invoked by uid 22791); 28 Feb 2010 17:45:16 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 28 Feb 2010 17:45:10 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0KYK00C00BXA1L00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Sun, 28 Feb 2010 19:45:03 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.70.17.203]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KYK00BY1BZ2RV10@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Sun, 28 Feb 2010 19:45:03 +0200 (IST) Date: Sun, 28 Feb 2010 17:45:00 -0000 From: Eli Zaretskii Subject: Re: [RFA] defs.h: Define GDB_DEFAULT_TARGET_[WIDE_]CHARSET for Cygwin and MingW builds In-reply-to: <20100228170523.GI5683@calimero.vinschen.de> To: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83y6idb6fs.fsf@gnu.org> References: <20100228130500.GG5683@calimero.vinschen.de> <838wadcn94.fsf@gnu.org> <20100228170523.GI5683@calimero.vinschen.de> 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: 2010-02/txt/msg00686.txt.bz2 > Date: Sun, 28 Feb 2010 18:05:23 +0100 > From: Corinna Vinschen > > > > +#define GDB_DEFAULT_TARGET_CHARSET "CP1252" > > > +#endif > > > > Why cp1252? why not detect the ANSI codepage at run time, and make > > more non-Latin users happy? > > How? Is there somewhere a function which converts a Windows codepage > number into a iconv compatible codeset string? Sorry, I'm not following: last time I looked, iconv supported cpNNNN codepages out of the box. This is from an Ubuntu GNU/Linux system: $ iconv --version iconv (GNU libiconv 1.11) $ iconv --list | egrep "^CP" CP819 IBM819 ISO-8859-1 ISO-IR-100 ISO8859-1 ISO_8859-1 ISO_8859-1:1987 L1 LATIN1 CSISOLATIN1 CP1250 MS-EE WINDOWS-1250 CP1251 MS-CYRL WINDOWS-1251 CP1252 MS-ANSI WINDOWS-1252 CP1253 MS-GREEK WINDOWS-1253 CP1254 MS-TURK WINDOWS-1254 CP1255 MS-HEBR WINDOWS-1255 CP1256 MS-ARAB WINDOWS-1256 CP1257 WINBALTRIM WINDOWS-1257 CP1258 WINDOWS-1258 CP154 CYRILLIC-ASIAN PT154 PTCP154 CSPTCP154 CP1133 IBM-CP1133 CP874 WINDOWS-874 CP932 CP936 MS936 WINDOWS-936 CP950 CP949 UHC CP1361 JOHAB What am I missing?