This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: [RFC] Unexpected compiler twist of the wcscoll issue


On Tue, Mar 12, 2002 at 07:53:20PM +0100, Paolo Carlini wrote:
> Ulrich Drepper wrote:
> > So replace in the test suite
> >    L"Äuglein"
> > with
> >    L"\xc4uglein"
> > This will work even with current gcc 3.x compilers.

More portably, something like L"\U000000c4uglein" (but using the proper
UCS-4 code for 'Ä' -- somebody German could find it more easily than
I could!) would be better.  This will get replaced by the encoding known
to the compiler, which may be Unicode (in which case the code is 
unchanged) or it may be something else (such as ISO-8859-1, or 0xc4).
 
> I didn't know about this kind of escape sequences. 
> Where can I learn more about them?

Section 2.2.

Nathan Myers
ncm at cantrip dot org


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