File: m_36_big5.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 (20 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* m_36_big5.t: Handling of 0x5c in BigFive multi-byte character.   */

#define     str( a)     # a

/* 36.1:    0x5c in multi-byte character is not an escape character */

#pragma __setlocale( "big5")                /* For MCPP     */
#pragma setlocale( "chinese-traditional")   /* For Visual C */

#if     '�r' == '\xa6\x72' && '�\' != '\xa5\x5c'
    Bad handling of '\\' in multi-byte character.
#endif

/* 36.ext:  */
    "�\�Z";   /* \xa5\x5c\xc1\x5a */

/* 36.2:    # operater should not insert '\\' before 0x5c in multi-byte
        character.  */
    str( "�\�Z");