This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Default target wide character set
- From: Eli Zaretskii <eliz at gnu dot org>
- To: tromey at redhat dot com
- Cc: alexeyf at opera dot com, gdb-patches at sourceware dot org
- Date: Wed, 16 Sep 2009 23:40:01 +0300
- Subject: Re: Default target wide character set
- References: <op.u0axp6t456e9f9@xman.oslo.opera.com> <m3ljkepvlz.fsf@fleche.redhat.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Tom Tromey <tromey@redhat.com>
> 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)?