From f8cf146ed420a5480a4bc6e279351069ecfa1fc8 Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Thu, 7 Aug 2008 15:49:00 +0000 Subject: [PATCH] gst/gst.c: Make sure gettext returns translations in UTF-8 encoding rather than in the current locale encoding (#5468... Original commit message from CVS: Patch by: Frederic Crozat * gst/gst.c: (init_pre): Make sure gettext returns translations in UTF-8 encoding rather than in the current locale encoding (#546822). --- ChangeLog | 8 ++++++++ gst/gst.c | 1 + 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3b3239c..05cdf92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-08-07 Tim-Philipp Müller + + Patch by: Frederic Crozat + + * gst/gst.c: (init_pre): + Make sure gettext returns translations in UTF-8 encoding rather + than in the current locale encoding (#546822). + 2008-08-07 Wim Taymans * gst/gstcaps.c: (gst_caps_structure_is_subset_field): diff --git a/gst/gst.c b/gst/gst.c index 77f8706..d937ae1 100644 --- a/gst/gst.c +++ b/gst/gst.c @@ -585,6 +585,7 @@ init_pre (GOptionContext * context, GOptionGroup * group, gpointer data, #ifdef ENABLE_NLS setlocale (LC_ALL, ""); bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); #endif /* ENABLE_NLS */ #ifndef GST_DISABLE_GST_DEBUG -- 2.7.4