src/stdlib/SDL_iconv.c
changeset 1502 d403a39389da
parent 1501 73dc5d39bbf8
child 1503 5e4dad24a5de
equal deleted inserted replaced
1501:73dc5d39bbf8 1502:d403a39389da
   667 			}
   667 			}
   668 			break;
   668 			break;
   669 		    case ENCODING_UTF32BE:
   669 		    case ENCODING_UTF32BE:
   670 			{
   670 			{
   671 				Uint8 *p = (Uint8 *)dst;
   671 				Uint8 *p = (Uint8 *)dst;
   672 				if ( ch > 0x7FFFFFFF ) {
   672 				if ( ch > 0x10FFFF ) {
   673 					ch = UNKNOWN_UNICODE;
   673 					ch = UNKNOWN_UNICODE;
   674 				}
   674 				}
   675 				if ( dstlen < 4 ) {
   675 				if ( dstlen < 4 ) {
   676 					return SDL_ICONV_E2BIG;
   676 					return SDL_ICONV_E2BIG;
   677 				}
   677 				}
   684 			}
   684 			}
   685 			break;
   685 			break;
   686 		    case ENCODING_UTF32LE:
   686 		    case ENCODING_UTF32LE:
   687 			{
   687 			{
   688 				Uint8 *p = (Uint8 *)dst;
   688 				Uint8 *p = (Uint8 *)dst;
   689 				if ( ch > 0x7FFFFFFF ) {
   689 				if ( ch > 0x10FFFF ) {
   690 					ch = UNKNOWN_UNICODE;
   690 					ch = UNKNOWN_UNICODE;
   691 				}
   691 				}
   692 				if ( dstlen < 4 ) {
   692 				if ( dstlen < 4 ) {
   693 					return SDL_ICONV_E2BIG;
   693 					return SDL_ICONV_E2BIG;
   694 				}
   694 				}