[MPlayer-dev-eng] [PATCH] Support locale under Windows console
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Jan 27 16:26:52 CET 2007
Hello,
On Sat, Jan 27, 2007 at 09:18:05PM +0800, Zuxy Meng wrote:
> Thanks! What should I declare the function when it's moved to
> osdep/getch2-win.c?
You the function name? Maybe get_term_charset?
And maybe move the nl_langinfo stuff under the same name into
osdep/getch2.c?
I.e. so that instead of
> #ifdef USE_LANGINFO
> if (!mp_msg_charset) {
> setlocale(LC_CTYPE, "");
> mp_msg_charset = nl_langinfo(CODESET);
> setlocale(LC_CTYPE, "C");
> }
> #endif
we would just have
> if (!mp_msg_charset)
> mp_msg_charset = get_term_charset();
What do the others think about that idea?
Greetings,
Reimar Döffinger
More information about the MPlayer-dev-eng
mailing list