Re: \uXXXX for Basic Latin

From: Jon Hanna (
Date: Thu Jun 23 2005 - 05:12:49 CDT

  • Next message: Lasse Kärkkäinen / Tronic: "Re: \uXXXX for Basic Latin"

    Lasse Kärkkäinen / Tronic wrote:

    >I noticed that GCC does not allow using \u notation in C++ code to specify
    >ASCII characters (in wide strings). Is this a bug in the compiler or am I
    >doing something wrong?
    >The error message was: \u006F is not a valid universal character
    The compiler is behaving correctly. ISO/IEC 14882 §2.2 ¶2:

    "If the hexadecimal value for a universal character name is less than
    0x20 or in the range 0x7F-0x9F (inclusive), or if the universal
    character name designates a character in the basic source character set,
    then the program is ill-formed."

    Since U+006F Latin Small Letter O would be in the basic source character
    set, you cannot use \u006F.

    This archive was generated by hypermail 2.1.5 : Thu Jun 23 2005 - 05:14:04 CDT