File: u_1_7_utf8.t

package info (click to toggle)
mcpp 2.7.2-5.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,440 kB
  • sloc: ansic: 35,245; sh: 9,241; makefile: 116; cpp: 84; exp: 18
file content (11 lines) | stat: -rw-r--r-- 414 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
/* u_1_7_utf8.t:    Invalid multi-byte character sequence (in string literal,
        character constant, header-name or comment).    */

#define str( a)     # a
#pragma __setlocale( "utf8")                /* For MCPP     */

    str( "字");   /* 0xe5ad97 : legal */
    str( "");   /* 0xc0af   : overlong  */
    str( "");   /* 0xe09fbf : overlong  */
    str( "");   /* 0xeda080 : UTF-16 surrogate  */