mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
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/alsa/gstalsaplugin.c: (plugin_init): * ext/cdparanoia/gstcdparanoiasrc.c: (plugin_init): * ext/gnomevfs/gstgnomevfs.c: (plugin_init): * ext/ogg/gstoggdemux.c: (gst_ogg_demux_plugin_init): * gst-libs/gst/audio/gstbaseaudiosrc.c: (_do_init): * gst-libs/gst/pbutils/pbutils.c: (gst_pb_utils_init): * gst-libs/gst/tag/tags.c: (gst_tag_register_tags_internal): * gst/playback/gstdecodebin.c: (plugin_init): * gst/playback/gstdecodebin2.c: (gst_decode_bin_plugin_init): * gst/playback/gstplayback.c: (plugin_init): * gst/playback/gstqueue2.c: (plugin_init): * gst/playback/gsturidecodebin.c: (gst_uri_decode_bin_plugin_init): * sys/v4l/gstv4l.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:
parent
cac199ce36
commit
89be246154
14 changed files with 33 additions and 0 deletions
20
ChangeLog
20
ChangeLog
|
@ -1,3 +1,23 @@
|
|||
2008-08-07 Tim-Philipp Müller <tim.muller at collabora co uk>
|
||||
|
||||
Patch by: Frederic Crozat <fcrozat@mandriva.org>
|
||||
|
||||
* ext/alsa/gstalsaplugin.c: (plugin_init):
|
||||
* ext/cdparanoia/gstcdparanoiasrc.c: (plugin_init):
|
||||
* ext/gnomevfs/gstgnomevfs.c: (plugin_init):
|
||||
* ext/ogg/gstoggdemux.c: (gst_ogg_demux_plugin_init):
|
||||
* gst-libs/gst/audio/gstbaseaudiosrc.c: (_do_init):
|
||||
* gst-libs/gst/pbutils/pbutils.c: (gst_pb_utils_init):
|
||||
* gst-libs/gst/tag/tags.c: (gst_tag_register_tags_internal):
|
||||
* gst/playback/gstdecodebin.c: (plugin_init):
|
||||
* gst/playback/gstdecodebin2.c: (gst_decode_bin_plugin_init):
|
||||
* gst/playback/gstplayback.c: (plugin_init):
|
||||
* gst/playback/gstqueue2.c: (plugin_init):
|
||||
* gst/playback/gsturidecodebin.c: (gst_uri_decode_bin_plugin_init):
|
||||
* sys/v4l/gstv4l.c: (plugin_init):
|
||||
Make sure gettext returns translations in UTF-8 encoding rather
|
||||
than in the current locale encoding (#546822).
|
||||
|
||||
2008-08-06 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* gst-libs/gst/pbutils/descriptions.c:
|
||||
|
|
|
@ -74,6 +74,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
|
||||
|
||||
err = snd_lib_error_set_handler (gst_alsa_error_wrapper);
|
||||
|
|
|
@ -493,6 +493,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
|
||||
|
||||
|
||||
|
|
|
@ -127,6 +127,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 */
|
||||
|
||||
return TRUE;
|
||||
|
|
|
@ -3279,6 +3279,7 @@ gst_ogg_demux_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
|
||||
|
||||
return gst_element_register (plugin, "oggdemux", GST_RANK_PRIMARY,
|
||||
|
|
|
@ -113,6 +113,7 @@ _do_init (GType type)
|
|||
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 */
|
||||
}
|
||||
|
||||
|
|
|
@ -101,6 +101,7 @@ gst_pb_utils_init (void)
|
|||
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
|
||||
|
||||
inited = TRUE;
|
||||
|
|
|
@ -51,6 +51,7 @@ gst_tag_register_tags_internal (gpointer unused)
|
|||
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
|
||||
|
||||
/* musicbrainz tags */
|
||||
|
|
|
@ -1935,6 +1935,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 */
|
||||
|
||||
return gst_element_register (plugin, "decodebin", GST_RANK_NONE,
|
||||
|
|
|
@ -2420,6 +2420,7 @@ gst_decode_bin_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 */
|
||||
|
||||
return gst_element_register (plugin, "decodebin2", GST_RANK_NONE,
|
||||
|
|
|
@ -44,6 +44,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 */
|
||||
|
||||
/* ref class from a thread-safe context to work around missing bit of
|
||||
|
|
|
@ -2063,6 +2063,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 */
|
||||
|
||||
return gst_element_register (plugin, "queue2", GST_RANK_NONE, GST_TYPE_QUEUE);
|
||||
|
|
|
@ -1796,6 +1796,7 @@ gst_uri_decode_bin_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 */
|
||||
|
||||
return gst_element_register (plugin, "uridecodebin", GST_RANK_NONE,
|
||||
|
|
|
@ -53,6 +53,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 */
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue