File: u_1_7_utf8.t

package info (click to toggle)
mcpp 2.7.2-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 8,152 kB
  • ctags: 29,136
  • sloc: ansic: 35,238; sh: 9,241; makefile: 176; cpp: 84; exp: 18
file content (11 lines) | stat: -rw-r--r-- 414 bytes parent folder | download | duplicates (5)
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  */