From 1519205f24ebe1a45e79e9463aa1c1d2cd8e1f4f Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 8 Mar 2006 12:45:48 +0000 Subject: Automaticall convert message to console charset, use utf8 for GTK2 Gui git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17773 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mp_msg.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'mp_msg.c') diff --git a/mp_msg.c b/mp_msg.c index 7f522aeb78..8439b141d8 100644 --- a/mp_msg.c +++ b/mp_msg.c @@ -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 @@ extern int use_gui; 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 @@ void mp_msg_init(void){ #endif #endif for(i=0;i