This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: gcc ignores locale (no UTF-8 source code supported)
- To: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Subject: Re: gcc ignores locale (no UTF-8 source code supported)
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Tue, 26 Sep 2000 00:33:06 +0100 (BST)
- CC: Markus dot Kuhn at cl dot cam dot ac dot uk, libc-alpha at sources dot redhat dot com, gcc at gcc dot gnu dot org
> For gcc, the issue is both one of portability and performance: the
> wide character routines are not available on supported hosts, and the
> performance hit of calling mb* routines would be unacceptable. Only
You could autoconf for the existence of the wide character routines.
And when starting the preprocessor, you can check which 8-bit raw
characters map to a full wide character, and build a lookup table;
when doing lexical scanning, you can then fast-track the 8 bit characters.