From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17781 invoked by alias); 16 Sep 2009 20:40:57 -0000 Received: (qmail 17772 invoked by uid 22791); 16 Sep 2009 20:40:56 -0000 X-SWARE-Spam-Status: No, hits=1.4 required=5.0 tests=AWL,BAYES_00,BOTNET,J_CHICKENPOX_66,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout1.012.net.il (HELO mtaout1.012.net.il) (84.95.2.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 Sep 2009 20:40:51 +0000 Received: from conversion-daemon.i-mtaout1.012.net.il by i-mtaout1.012.net.il (HyperSendmail v2007.08) id <0KQ200C00ZW3XT00@i-mtaout1.012.net.il> for gdb-patches@sourceware.org; Wed, 16 Sep 2009 23:39:57 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.70.38.189]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KQ300L5V02LQ7D0@i-mtaout1.012.net.il>; Wed, 16 Sep 2009 23:39:57 +0300 (IDT) Date: Wed, 16 Sep 2009 20:40:00 -0000 From: Eli Zaretskii Subject: Re: Default target wide character set In-reply-to: To: tromey@redhat.com Cc: alexeyf@opera.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83y6oewrmm.fsf@gnu.org> References: 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-09/txt/msg00530.txt.bz2 > From: Tom Tromey > Cc: gdb-patches@sourceware.org > Date: Wed, 16 Sep 2009 12:55:52 -0600 > > What I would propose doing is adding a new charset named "UCS". If this > is selected as the target wide charset, then we would automatically pick > UCS-2 or UCS-4 depending on sizeof(target wchar_t). AFAIK, Windows (whose wchar_t is 16-bit) uses UTF-16, not UCS-2. What other platforms have a 16-bit wchar_t, and are you sure any significant portion of them use UCS-2 (which is an obsolete encoding, AFAIK)?