From 6e020e66e0e454e8c7f1eeb17e85b90262e95386 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 31 Jul 2012 01:35:53 +0200 Subject: mp_msg: remove filename_recode This was intended for translating filenames from filesystem charset to the terminal charset. Modern sane platforms use UTF-8 for everything, and on Windows we use unicode APIs, so this is not needed anymore. Remove filename_recode, all uses of it, options and configure checks related to terminal output charset, and code that tries to determine the same. --- osdep/getch2.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'osdep/getch2.c') diff --git a/osdep/getch2.c b/osdep/getch2.c index f0aa19a2cc..cd8a198737 100644 --- a/osdep/getch2.c +++ b/osdep/getch2.c @@ -50,11 +50,6 @@ #endif #endif -#if defined(HAVE_LANGINFO) && defined(CONFIG_ICONV) -#include -#include -#endif - #include #include @@ -325,16 +320,3 @@ void getch2_disable(void){ tcsetattr(0,TCSANOW,&tio_orig); #endif } - -#ifdef CONFIG_ICONV -char* get_term_charset(void) -{ - char* charset = NULL; -#ifdef HAVE_LANGINFO - setlocale(LC_CTYPE, ""); - charset = strdup(nl_langinfo(CODESET)); - setlocale(LC_CTYPE, "C"); -#endif - return charset; -} -#endif -- cgit v1.2.3