diff options
author | Frederic Crozat <fcrozat@mandriva.org> | 2008-08-07 16:11:00 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2008-08-07 16:11:00 +0000 |
commit | 426721f717d3bb2ff4fe6249500a7f1992c246a6 (patch) | |
tree | 4a751660f3831b09e974f4ee89b0b53203510aa8 /sys | |
parent | 701bb29b16fa156fd50401ae1ed077f053a4d4d8 (diff) | |
download | gstreamer-plugins-good-426721f717d3bb2ff4fe6249500a7f1992c246a6.tar.gz |
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/esd/gstesd.c: (plugin_init):
* ext/flac/gstflac.c: (plugin_init):
* ext/shout2/gstshout2.c: (plugin_init):
* ext/wavpack/gstwavpack.c: (plugin_init):
* sys/oss/gstossaudio.c: (plugin_init):
* sys/v4l2/gstv4l2.c: (plugin_init):
Make sure gettext returns translations in UTF-8 encoding rather
than in the current locale encoding (#546822).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/oss/gstossaudio.c | 1 | ||||
-rw-r--r-- | sys/v4l2/gstv4l2.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/oss/gstossaudio.c b/sys/oss/gstossaudio.c index 69c6745ae..aa70b094a 100644 --- a/sys/oss/gstossaudio.c +++ b/sys/oss/gstossaudio.c @@ -48,6 +48,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; diff --git a/sys/v4l2/gstv4l2.c b/sys/v4l2/gstv4l2.c index a65f7c162..15602b992 100644 --- a/sys/v4l2/gstv4l2.c +++ b/sys/v4l2/gstv4l2.c @@ -56,6 +56,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; |