[MPlayer-dev-eng] [PATCH] localize with gettext (libintl)
Ötvös Attila
oattila at chello.hu
Thu Nov 30 01:18:30 CET 2006
2006. november 30. 01.26 dátummal Rich Felker ezt írta:
> Changing the locale after binding the gettext domain probably results
> in undefined (or at least incorrect) behavior. Regardless I'm STRONGLY
> against gettext. It's one of the GNU abominations on par with
> autoshit, glibc, etc.
I believe so gettext work without setlocale(LC_TYPE,"") if use
bind_textdomain_codeset() function:
setlocale(LC_MESSAGES,"");
bindtextdomain(...)
textdomain(...)
bind_textdomain_codeset("mplayer",mp_msg_charset); // from USE_LANGINFO
Attila
More information about the MPlayer-dev-eng
mailing list