Files correlati : Commento : Aggiunto il preprocessore c++ mcpp per sostituire il compilatore nella compilazione delle maschere.
		
			
				
	
	
		
			17 lines
		
	
	
		
			504 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			504 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* u_1_7_utf8.c:    Invalid multi-byte character sequence (in string literal,
 | ||
|         character constant, header-name or comment).    */
 | ||
| 
 | ||
| #define str( a)     # a
 | ||
| #pragma __setlocale( "utf8")                /* For MCPP     */
 | ||
| 
 | ||
| main( void)
 | ||
| {
 | ||
|     char *  cp = str( "字");   /* 0xe5ad97 : legal */
 | ||
|     char *  ecp1 = str( "<EFBFBD><EFBFBD>");   /* 0xc0af   : overlong  */
 | ||
|     char *  ecp2 = str( "<EFBFBD><EFBFBD><EFBFBD>");   /* 0xe09fbf : overlong  */
 | ||
|     char *  ecp3 = str( "<EFBFBD><EFBFBD><EFBFBD>");   /* 0xeda080 : UTF-16 surrogate  */
 | ||
| 
 | ||
|     return  0;
 | ||
| }
 | ||
| 
 |