diff options
author | Frederic Crozat <fcrozat@mandriva.org> | 2008-08-07 16:20:30 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2008-08-07 16:20:30 +0000 |
commit | 106b2a7a379d6ce02610ab2b8f1f54e487cf54a6 (patch) | |
tree | 19b39394c813158630cad11fa296842b1254bd00 | |
parent | eea5ff778fcde82cdf415f38a8104b218fc396db (diff) | |
download | gst-plugins-bad-106b2a7a379d6ce02610ab2b8f1f54e487cf54a6.tar.gz gst-plugins-bad-106b2a7a379d6ce02610ab2b8f1f54e487cf54a6.tar.bz2 gst-plugins-bad-106b2a7a379d6ce02610ab2b8f1f54e487cf54a6.zip |
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/sndfile/gstsf.c: (plugin_init):
* sys/dvb/gstdvbsrc.c: (gst_dvbsrc_plugin_init):
* sys/oss4/oss4-audio.c: (plugin_init):
Make sure gettext returns translations in UTF-8 encoding rather
than in the current locale encoding (#546822).
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | ext/sndfile/gstsf.c | 1 | ||||
-rw-r--r-- | sys/dvb/gstdvbsrc.c | 1 | ||||
-rw-r--r-- | sys/oss4/oss4-audio.c | 1 |
4 files changed, 13 insertions, 0 deletions
@@ -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/sndfile/gstsf.c: (plugin_init): + * sys/dvb/gstdvbsrc.c: (gst_dvbsrc_plugin_init): + * sys/oss4/oss4-audio.c: (plugin_init): + Make sure gettext returns translations in UTF-8 encoding rather + than in the current locale encoding (#546822). + 2008-08-07 Sebastian Dröge <sebastian.droege@collabora.co.uk> * ext/twolame/gsttwolame.c: (gst_two_lame_sink_setcaps), diff --git a/ext/sndfile/gstsf.c b/ext/sndfile/gstsf.c index dcfcc1bd..6148e852 100644 --- a/ext/sndfile/gstsf.c +++ b/ext/sndfile/gstsf.c @@ -109,6 +109,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, "sfsink", GST_RANK_NONE, diff --git a/sys/dvb/gstdvbsrc.c b/sys/dvb/gstdvbsrc.c index c6f5dbce..1e0369ba 100644 --- a/sys/dvb/gstdvbsrc.c +++ b/sys/dvb/gstdvbsrc.c @@ -834,6 +834,7 @@ gst_dvbsrc_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, "dvbsrc", GST_RANK_NONE, diff --git a/sys/oss4/oss4-audio.c b/sys/oss4/oss4-audio.c index a2404cc8..0a3c0af1 100644 --- a/sys/oss4/oss4-audio.c +++ b/sys/oss4/oss4-audio.c @@ -700,6 +700,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 /* we want a higher rank than the legacy OSS elements have now */ |