From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11600 invoked by alias); 18 Apr 2011 10:36:42 -0000 Received: (qmail 11590 invoked by uid 22791); 18 Apr 2011 10:36:41 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_20,MSGID_MULTIPLE_AT X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 Apr 2011 10:36:05 +0000 Received: from md2.u-strasbg.fr (md2.u-strasbg.fr [IPv6:2001:660:2402::187]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id p3IAZbQq041158 ; Mon, 18 Apr 2011 12:35:37 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms3.u-strasbg.fr [130.79.204.12]) by md2.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id p3IAZQi5025993 ; Mon, 18 Apr 2011 12:35:26 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from E6510Muller (gw-ics.u-strasbg.fr [130.79.210.225]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id p3IAZPYD042664 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) ; Mon, 18 Apr 2011 12:35:26 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: "'Eli Zaretskii'" Cc: , , References: <5928.31498147479$1302882967@news.gmane.org> <005101cbfc50$193136b0$4b93a410$%muller@ics-cnrs.unistra.fr> <20110416162455.GA5599@host1.jankratochvil.net> <000001cbfc7d$3f67f440$be37dcc0$%muller@ics-cnrs.unistra.fr> <83zknpoacd.fsf@gnu.org> In-Reply-To: <83zknpoacd.fsf@gnu.org> Subject: RE: [RFA-v2] Handle cygwin wchar_t specifics Date: Mon, 18 Apr 2011 10:36:00 -0000 Message-ID: <00a801cbfdb4$551214a0$ff363de0$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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: 2011-04/txt/msg00273.txt.bz2 Hi Eli, > -----Message d'origine----- > De=A0: gdb-patches-owner@sourceware.org [mailto:gdb-patches- > owner@sourceware.org] De la part de Eli Zaretskii > Envoy=E9=A0: dimanche 17 avril 2011 04:56 > =C0=A0: Pierre Muller > Cc=A0: jan.kratochvil@redhat.com; tromey@redhat.com; gdb- > patches@sourceware.org > Objet=A0: Re: [RFA-v2] Handle cygwin wchar_t specifics >=20 > > From: "Pierre Muller" > > Cc: "'Tom Tromey'" , > > Date: Sat, 16 Apr 2011 23:28:35 +0200 > > > > -/* If __STDC_ISO_10646__ is defined, then the host wchar_t is UCS-4. > > +/* If __STDC_ISO_10646__ is defined, then the host wchar_t is UCS-4 or > UCS-2. >=20 > Please use UTF-16, not UCS-2. What Windows uses is the former. The > latter is the old name from the days when Unicode covered only the > BMP; it was superseded by UTF-16 that covers more than that. Are you sure this is correct? I tried what you said, but "UTF-16" seems to mean "UTF-16BE" while UTF-16LE" seems to do a better job. But if UTF-16 is better than UCS-2, shouldn't we also favor UTF-32 over UCS-4? =20 I will send a new RFA using UTF16-LE for windows shortly. Pierre