File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2595,7 +2595,7 @@ UtfToUtfProc(
25952595
25962596	    const  char  * saveSrc  =  src ;
25972597	    src  +=  len ;
2598- 	    if  (!(flags  &  ENCODING_UTF ) &&  !(flags  &  ENCODING_INPUT ) &&  (ch  >  0x3FF )) {
2598+ 	    if  (!(flags  &  ENCODING_UTF ) &&  !(flags  &  ENCODING_INPUT ) &&  (ch  >  0x7FF )) {
25992599		if  (ch  >  0xFFFF ) {
26002600		    /* CESU-8 6-byte sequence for chars > U+FFFF */ 
26012601		    ch  -=  0x10000 ;
Original file line number Diff line number Diff line change @@ -471,6 +471,9 @@ test encoding-15.31 {UtfToUtfProc -profile strict CESU-8 (bytes F0-F4 are invali
471471test encoding-15.32 {UtfToUtfProc CESU-8 [2f22a7364d]} -body {
472472    encoding convertto cesu-8 \U1f600
473473} -result \xED\xA0\xBD\xED\xB8\x80
474+ test encoding-15.33 {UtfToUtfProc CESU-8 [63325009a8]} -body {
475+     encoding convertto utf-8 \u0400
476+ } -result \xD0\x80
474477
475478test encoding-16.1 {Utf16ToUtfProc} -body {
476479    set val [encoding convertfrom utf-16 NN]
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments