Make sure gettext returns translations in UTF-8 encoding rather than in the current locale encoding (#546822).

Original commit message from CVS:
Patch by: Frederic Crozat <fcrozat@mandriva.org>
* ext/dvdread/dvdreadsrc.c: (plugin_init):
* ext/lame/gstlame.c: (plugin_init):
* gst/asfdemux/gstasf.c: (plugin_init):
Make sure gettext returns translations in UTF-8 encoding rather
than in the current locale encoding (#546822).
This commit is contained in:
Frederic Crozat 2008-08-07 16:14:42 +00:00 committed by Tim-Philipp Müller
parent 6d5dba30d2
commit dddfa0d890
5 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,13 @@
2008-08-07 Tim-Philipp Müller <tim.muller at collabora co uk>
Patch by: Frederic Crozat <fcrozat@mandriva.org>
* ext/dvdread/dvdreadsrc.c: (plugin_init):
* ext/lame/gstlame.c: (plugin_init):
* gst/asfdemux/gstasf.c: (plugin_init):
Make sure gettext returns translations in UTF-8 encoding rather
than in the current locale encoding (#546822).
2008-07-31 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* gst/mpegaudioparse/gstmpegaudioparse.c:

2
common

@ -1 +1 @@
Subproject commit e79879859bc866545379eb77e1378a906dc30ebf
Subproject commit d70ca17ae6fbe6020996e4567275d5e14972ed45

View file

@ -1722,6 +1722,7 @@ plugin_init (GstPlugin * plugin)
GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
LOCALEDIR);
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif /* ENABLE_NLS */
if (!gst_element_register (plugin, "dvdreadsrc", GST_RANK_SECONDARY,

View file

@ -1364,6 +1364,7 @@ plugin_init (GstPlugin * plugin)
GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
LOCALEDIR);
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif /* ENABLE_NLS */
if (!gst_element_register (plugin, "lame", GST_RANK_NONE, GST_TYPE_LAME))

View file

@ -38,6 +38,7 @@ plugin_init (GstPlugin * plugin)
GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
LOCALEDIR);
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif /* ENABLE_NLS */
gst_riff_init ();