~ubuntu-branches/ubuntu/edgy/mcpp/edgy

« back to all changes in this revision

Viewing changes to test-c/i_34_big5.c

  • Committer: Bazaar Package Importer
  • Author(s): NIIBE Yutaka
  • Date: 2005-04-16 15:58:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050416155816-q9a9ipx724qvf3le
Tags: 2.5-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* i_34_big5.t: Multi-byte character constant encoded in Big-Five.  */
2
 
 
3
 
#include    "defs.h"
4
 
 
5
 
main( void)
6
 
{
7
 
    char *  ptr;
8
 
 
9
 
    fputs( "started\n", stderr);
10
 
 
11
 
/* 34.1:    */
12
 
 
13
 
#pragma __setlocale( "big5")                /* For MCPP     */
14
 
#pragma setlocale( "chinese-traditional")   /* For Visual C */
15
 
 
16
 
#if     '�r' == '\xa6\x72'
17
 
    ptr = "Multi-byte character is encoded in Big-Five.";
18
 
#else
19
 
    ptr = "I cannot understand Big-Five.";
20
 
#endif
21
 
 
22
 
    assert( strcmp( ptr, "I cannot understand Big-Five.") != 0);
23
 
    fputs( "success\n", stderr);
24
 
    return  0;
25
 
}
26