src/stdlib/SDL_iconv.c
changeset 3539 f2846bf19360
parent 3320 b225c8a7896e
child 3697 f7b03b6838cb
equal deleted inserted replaced
3538:a1896642a47e 3539:f2846bf19360
   389                         /* Skip illegal sequences
   389                         /* Skip illegal sequences
   390                            return SDL_ICONV_EILSEQ;
   390                            return SDL_ICONV_EILSEQ;
   391                          */
   391                          */
   392                         ch = UNKNOWN_UNICODE;
   392                         ch = UNKNOWN_UNICODE;
   393                     } else {
   393                     } else {
   394                         if ((p[0] & 0xCE) == 0xC0) {
   394                         if ((p[0] & 0xDE) == 0xC0) {
   395                             overlong = SDL_TRUE;
   395                             overlong = SDL_TRUE;
   396                         }
   396                         }
   397                         ch = (Uint32) (p[0] & 0x1F);
   397                         ch = (Uint32) (p[0] & 0x1F);
   398                         left = 1;
   398                         left = 1;
   399                     }
   399                     }