Unicode (or any multibyte char support)
Geoff Keating
geoffk@cygnus.com
Sun Apr 16 16:09:00 GMT 2000
Bill Cox <bill.cox@windriver.com> writes:
> At 11:39 AM 4/14/00 +0300, ESTeam wrote:
> >Hi,
> >
> >I was wondering if gcc supports in some way double byte
> >strings (for Unicode support).
>
> Yes, if your compiler is configured with WCHAR_TYPE and
> WCHAR_TYPE_SIZE correctly. For Unicode, the setting
> probably should be
> #define WCHAR_TYPE "short unsigned int"
> #define WCHAR_TYPE_SIZE 16
You probably don't want to support Unicode, though. Instead you want
to support the ISO version of the same thing, which has Unicode as a
subset and uses 32-bit characters.
--
- Geoffrey Keating <geoffk@cygnus.com>
More information about the Gcc-patches
mailing list