i18n: make sure gettext gives us UTF-8 at all times

This commit is contained in:
Tim-Philipp Müller 2009-03-25 15:42:15 +00:00
parent 4bcd50ccbd
commit 2199592039
2 changed files with 2 additions and 0 deletions

View file

@ -37,6 +37,7 @@ plugin_init (GstPlugin * plugin)
#ifdef ENABLE_NLS
setlocale (LC_ALL, "");
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif /* ENABLE_NLS */
if (!gst_element_register (plugin, "avidemux", GST_RANK_PRIMARY,

View file

@ -33,6 +33,7 @@ plugin_init (GstPlugin * plugin)
#ifdef ENABLE_NLS
setlocale (LC_ALL, "");
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif /* ENABLE_NLS */
/* ensure private tag is registered */