Index: configure =================================================================== RCS file: /cvsroot/mplayer/main/configure,v retrieving revision 1.1135 diff -u -r1.1135 configure --- configure 18 Feb 2006 20:04:42 -0000 1.1135 +++ configure 20 Feb 2006 21:09:41 -0000 @@ -6957,6 +6962,20 @@ fi # --------------- GUI specific tests end ------------------- +if test "$_charset" = "noconv" ; then + _charset="" +elif test -z "$_charset" ; then + if test "$_gtk1" = yes ; then + _charset=`cat ${_mp_help}.charset` + else + _charset=utf8 + fi +fi +if test "$_charset" ; then + _def_charset="#define MSG_CHARSET \"$_charset\"" +else + _def_charset="#undef MSG_CHARSET" +fi ############################################################################# @@ -7404,6 +7423,9 @@ /* use GNU internationalization */ $_def_i18n +/* name of messages charset */ +$_def_charset + /* Runtime CPU detection */ $_def_runtime_cpudetection Index: mp_msg.c =================================================================== RCS file: /cvsroot/mplayer/main/mp_msg.c,v retrieving revision 1.33 diff -u -r1.33 mp_msg.c --- mp_msg.c 9 Feb 2006 14:07:52 -0000 1.33 +++ mp_msg.c 20 Feb 2006 21:09:42 -0000 @@ -7,6 +7,14 @@ #include "config.h" +#ifdef USE_LANGINFO +#include +#include +#endif +#ifdef USE_ICONV +#include +#endif + #if defined(FOR_MENCODER) || defined(CODECS2HTML) #undef HAVE_NEW_GUI #endif @@ -23,6 +31,11 @@ int mp_msg_levels[MSGT_MAX]; // verbose level of this module. inited to 2 int mp_msg_level_all = MSGL_STATUS; int verbose = 0; +#ifdef USE_ICONV +char *mp_msg_charset = NULL; +static char *old_charset = NULL; +static iconv_t msgiconv; +#endif void mp_msg_init(void){ int i; @@ -43,6 +56,16 @@ #endif #endif for(i=0;i