This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [RFA-v2] Handle cygwin wchar_t specifics
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: "'Eli Zaretskii'" <eliz at gnu dot org>
- Cc: <jan dot kratochvil at redhat dot com>, <tromey at redhat dot com>, <gdb-patches at sourceware dot org>
- Date: Mon, 18 Apr 2011 12:35:26 +0200
- Subject: RE: [RFA-v2] Handle cygwin wchar_t specifics
- References: <5928.31498147479$1302882967@news.gmane.org> <m3ei53cres.fsf@fleche.redhat.com> <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>
Hi Eli,
> -----Message d'origine-----
> De?: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Eli Zaretskii
> Envoyé?: dimanche 17 avril 2011 04:56
> À?: Pierre Muller
> Cc?: jan.kratochvil@redhat.com; tromey@redhat.com; gdb-
> patches@sourceware.org
> Objet?: Re: [RFA-v2] Handle cygwin wchar_t specifics
>
> > From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
> > Cc: "'Tom Tromey'" <tromey@redhat.com>, <gdb-patches@sourceware.org>
> > 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.
>
> 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?
I will send a new RFA using UTF16-LE for windows shortly.
Pierre