universal character name
Patrick Horgan
phorgan1@yahoo.com
Tue Oct 12 01:25:00 GMT 2010
I was building a test program that I wrote a long time ago to check a
utf-8 code conversion facet, and it will no longer build because the
line that checks to see if "\xc2\x80" really converts to "\u0080"
doesn't compile. This is entirely correct, of course since the current
draft standard in section 2.3.2 says that any program with universal
character names in the control character ranges of 0x00â0x1F or
0x7Fâ0x9F is ill-formed. That means I can't say "\u0080". Still, the
characters are valid unicode, and it makes it more annoying.
Is "\x0\x80" the equivalent, or can there be endianess issues with wide
chars?
Patrick
More information about the Gcc-help
mailing list