From 426721f717d3bb2ff4fe6249500a7f1992c246a6 Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Thu, 7 Aug 2008 16:11:00 +0000 Subject: 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 * 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). --- sys/v4l2/gstv4l2.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/v4l2/gstv4l2.c') diff --git a/sys/v4l2/gstv4l2.c b/sys/v4l2/gstv4l2.c index a65f7c16..15602b99 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; -- cgit