From: Frederic Crozat Date: Thu, 7 Aug 2008 16:14:42 +0000 (+0000) Subject: Make sure gettext returns translations in UTF-8 encoding rather than in the current... X-Git-Tag: 1.19.3~509^2~1916^2~61 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03141f0ff6b8fc916bef042e8d2d700b5aff7045;p=platform%2Fupstream%2Fgstreamer.git 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/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). --- diff --git a/ext/lame/gstlame.c b/ext/lame/gstlame.c index 71744b0..906faae 100644 --- a/ext/lame/gstlame.c +++ b/ext/lame/gstlame.c @@ -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))