Index: mp_msg.c =================================================================== RCS file: /cvsroot/mplayer/main/mp_msg.c,v retrieving revision 1.36 diff -u -r1.36 mp_msg.c --- mp_msg.c 8 Mar 2006 12:45:47 -0000 1.36 +++ mp_msg.c 23 Mar 2006 10:25:20 -0000 @@ -102,6 +102,10 @@ msgiconv = iconv_open(mp_msg_charset, MSG_CHARSET); old_charset = strdup(mp_msg_charset); } + if (msgiconv == (iconv_t)(-1)) { + fprintf(stderr,"iconv: conversion from %s to %s unsupported\n" + ,mp_msg_charset,MSG_CHARSET); + }else{ memset(tmp2, 0, MSGSIZE_MAX); while (iconv(msgiconv, &in, &inlen, &out, &outlen) == -1) { if (!inlen || !outlen) @@ -112,6 +116,7 @@ strncpy(tmp, tmp2, MSGSIZE_MAX); tmp[MSGSIZE_MAX-1] = 0; tmp[MSGSIZE_MAX-2] = '\n'; + } } #endif Index: libvo/font_load_ft.c =================================================================== RCS file: /cvsroot/mplayer/main/libvo/font_load_ft.c,v retrieving revision 1.17 diff -u -r1.17 font_load_ft.c --- libvo/font_load_ft.c 9 Feb 2006 14:07:58 -0000 1.17 +++ libvo/font_load_ft.c 23 Mar 2006 10:25:22 -0000 @@ -18,7 +18,9 @@ #include #include +#ifdef USE_ICONV #include +#endif #include #include FT_FREETYPE_H @@ -731,7 +733,7 @@ return 0; } - +#ifdef USE_ICONV /* decode from 'encoding' to unicode */ static FT_ULong decode_char(iconv_t *cd, char c) { FT_ULong o; @@ -830,6 +832,7 @@ return i; } +#endif static font_desc_t* init_font_desc(void) { @@ -1015,6 +1018,7 @@ } desc->face_cnt++; +#ifdef USE_ICONV if (unicode) { charset_size = prepare_charset_unicode(face, my_charset, my_charcodes); } else { @@ -1030,6 +1034,9 @@ free_font_desc(desc); return NULL; } +#else + return NULL; +#endif // fprintf(stderr, "fg: prepare t = %lf\n", GetTimer()-t);