diff options
author | wm4 <wm4@nowhere> | 2012-07-31 01:35:53 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-07-31 01:35:53 +0200 |
commit | 6e020e66e0e454e8c7f1eeb17e85b90262e95386 (patch) | |
tree | 0cace859c7775e6066dbe9fcb3f742269bf84657 /osdep/getch2.c | |
parent | c78ba1c55c86db4d17583f7c8eb5b9034ae98193 (diff) | |
download | mpv-6e020e66e0e454e8c7f1eeb17e85b90262e95386.tar.bz2 mpv-6e020e66e0e454e8c7f1eeb17e85b90262e95386.tar.xz |
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.
Diffstat (limited to 'osdep/getch2.c')
-rw-r--r-- | osdep/getch2.c | 18 |
1 files changed, 0 insertions, 18 deletions
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 <locale.h> -#include <langinfo.h> -#endif - #include <unistd.h> #include <fcntl.h> @@ -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 |