From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1473 invoked by alias); 28 Feb 2010 16:56:52 -0000 Received: (qmail 1459 invoked by uid 22791); 28 Feb 2010 16:56:51 -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 mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 28 Feb 2010 16:56:46 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0KYK005009JVG800@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Sun, 28 Feb 2010 18:56:32 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.70.17.203]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KYK001969Q6BNB0@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Sun, 28 Feb 2010 18:56:31 +0200 (IST) Date: Sun, 28 Feb 2010 16:56:00 -0000 From: Eli Zaretskii Subject: Re: [RFA] defs.h: Define GDB_DEFAULT_TARGET_[WIDE_]CHARSET for Cygwin and MingW builds In-reply-to: <20100228130500.GG5683@calimero.vinschen.de> To: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <838wadcn94.fsf@gnu.org> References: <20100228130500.GG5683@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/msg00681.txt.bz2 > Date: Sun, 28 Feb 2010 14:05:00 +0100 > From: Corinna Vinschen > > +/* The default output charset for Cygwin is UTF-8. The default output > + charset for Win32 is the default ANSI codepage of the system, which > + depends on the localization of the underlying Windows system. However, > + CP1252 is a good default replacement for ISO-8859-1 at least. */ > +#if defined (__CYGWIN__) > +#define GDB_DEFAULT_TARGET_CHARSET "UTF-8" > +#elif defined (_WIN32) > +#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?