cpplib utf8, status?
Joseph S. Myers
joseph@codesourcery.com
Mon Apr 26 12:37:00 GMT 2010
On Mon, 26 Apr 2010, Janek Kozicki wrote:
> Hi,
>
> I wanted to ask - perhaps you know - what is the status of adding the
> UTF-8 support for identifier names in GCC, for c++?
>
> It is according to http://gcc.gnu.org/projects/cpplib.html that such
> support is planned.
That page generally appears very out of date; it's not been updated since
2002.
I have a 15-point todo list for extended identifiers, the very last point
of which is enabling -fextended-identifiers by default for C99, C1X and
C++. This represents the results of analysis of the current state of GCC
against the requirements for extended identifiers I agreed with Zack (PR
9449 comment 21). Fixing all the various cases required is however low
priority.
> If you know that there is some patch somewhere floating around, even
> a very experimental one, I would like to try it. (debian squeeze)
If you wish to experiment with extended identifiers, use
-fextended-identifiers. This only supports UCNs in identifiers, not
extended characters represented other than with UCNs. Point 14 out of 15
on my list is support for actual UTF-8 in identifiers.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc
mailing list