1 /* m_34_eucjp.c: Multi-byte character constant encoded in EUC-JP. */ 2 3 #include "defs.h" 4 main(void)5main( void) 6 { 7 char * ptr; 8 9 fputs( "started\n", stderr); 10 11 /* 34.1: */ 12 13 #pragma __setlocale( "eucjp") /* For MCPP */ 14 #pragma setlocale( "eucjp") /* For MCPP on VC */ 15 16 #if '��' == '\xbb\xfa' 17 ptr = "Multi-byte character is encoded in EUC-JP."; 18 #else 19 ptr = "I cannot understand EUC-JP."; 20 #endif 21 22 assert( strcmp( ptr, "I cannot understand EUC-JP.") != 0); 23 fputs( "success\n", stderr); 24 return 0; 25 } 26 27