This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: proposed Opengroup action for c99 command (XCU ERN 76)
- From: rridge at csclub dot uwaterloo dot ca (Ross Ridge)
- To: Ian Lance Taylor <ian at airs dot com>
- Cc: Ross Ridge <rridge at csclub dot uwaterloo dot ca>,Robert Dewar <dewar at adacore dot com>, gcc at gcc dot gnu dot org
- Date: Thu, 15 Sep 2005 03:17:28 -0400 (EDT)
- Subject: Re: proposed Opengroup action for c99 command (XCU ERN 76)
> > A. Convert everything to UCNs in basic source characters as soon
> > as possible, that is, in translation phase 1. (This is what
> > C++ requires, apparently.)
> >
> > B. Use native encodings where possible, UCNs otherwise.
> >
> > C. Convert everything to wide characters as soon as possible
> > using an internal encoding that encompasses the entire source
> > character set and all UCNs.
>
> Now, see libcpp/charset.c. See the -finput-charset= option. To me
> that looks like code which does something related to (A), (B), or (C).
Well, maybe I'm missing something, but it never converts input characters
to UCNs so that means it doesn't do (A) or (B), and the only thing it
converts to wide characters are wide string literals, so it doesn't do
(C).
Hmm... maybe it's doing (B) if UCNs aren't ever necessary, though it
doesn't seem to support extended characters in indentifiers so it's not
quite using native encodings where possible. Though the intent does
seem to be to go with option (B).
Ross Ridge