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]
Other format: [Raw text]

Re: RFA: PATCH to libcpp/charset.c for revised C++ UCN restrictions


On Thu, 8 Oct 2009, Jason Merrill wrote:

> Previously, the C++ standard failed to prohibit the use of surrogate pair
> values in UCNs (\uD800-\uDFFF).  Document N2170 corrected this issue, bringing
> C++ in line with C99, and at the same time allowed UCNs that correspond to
> control characters or elements of the basic source character set to be used
> within string or character literals, unlike C99.
> 
> This patch implements that change.  Tested x86_64-pc-linux-gnu.
> 
> OK for trunk?

OK.  You can approve cpplib patches yourself as a C++ maintainer, and I'll 
leave it to your judgement in each particular case whether C++0x is fixing 
a defect in the previous version of C++ or whether the behavior should be 
conditioned on the C++ version in use.

-- 
Joseph S. Myers
joseph@codesourcery.com


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