This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cpplib: locale-sensitive lexing


Joseph S. Myers wrote:-

> On Wed, 24 Oct 2001, Neil Booth wrote:
> 
> > This patch doesn't touch the routines that interpret literals, and
> > doesn't do anything about "extended identifiers".  String and
> > character literals are preserved as they appear in the source file,
> > with the sole exception that trigraphs are converted.  This means that
> > preprocessed output is in the same character set as the input, and can
> > be correctly re-lexed under the same locale.
> 
> Do I understand correctly that this patch does nothing about
> multibyte-to-wide conversion when wide and narrow strings are concatenated
> (see N951), and does not attempt to support the ISO C++ rules where they
> differ from C99?

That's what it says in the paragraph you quoted.  It just solves the
lexing problem, so that e.g. we don't confuse '\\' as the 2nd
character of a multibyte sequence as being a backslash.

Neil.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]