src/stdlib/SDL_iconv.c
branchSDL-1.2
changeset 4388 1524d3237820
parent 4243 22aec2e85b86
child 6137 4720145f848b
equal deleted inserted replaced
4387:72d3b4fd918b 4388:1524d3237820
   381 						/* Skip illegal sequences
   381 						/* Skip illegal sequences
   382 						return SDL_ICONV_EILSEQ;
   382 						return SDL_ICONV_EILSEQ;
   383 						*/
   383 						*/
   384 						ch = UNKNOWN_UNICODE;
   384 						ch = UNKNOWN_UNICODE;
   385 					} else {
   385 					} else {
   386 						if ( (p[0] & 0xCE) == 0xC0 ) {
   386 						if ( (p[0] & 0xDE) == 0xC0 ) {
   387 							overlong = SDL_TRUE;
   387 							overlong = SDL_TRUE;
   388 						}
   388 						}
   389 						ch = (Uint32)(p[0] & 0x1F);
   389 						ch = (Uint32)(p[0] & 0x1F);
   390 						left = 1;
   390 						left = 1;
   391 					}
   391 					}