[telepathy-mission-control-5.16] telepathy-mission-control: mc-wait-for-name: Call setlocale in main function

George Kiagiadakis gkiagia at kemper.freedesktop.org
Mon Jul 18 17:54:48 UTC 2016


Module: telepathy-mission-control
Branch: telepathy-mission-control-5.16
Commit: c5589bdc4ded0382adf6ba9ffc5c27f8a6e0568d
URL:    http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=c5589bdc4ded0382adf6ba9ffc5c27f8a6e0568d

Author: Ting-Wei Lan <lantw at src.gnome.org>
Date:   Mon Jan 11 15:07:56 2016 +0800

mc-wait-for-name: Call setlocale in main function

It is required to correctly show translated messages on some locales.

https://bugs.freedesktop.org/show_bug.cgi?id=93661

---

 util/wait-for-name.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/util/wait-for-name.c b/util/wait-for-name.c
index 13f2f5b..6a27723 100644
--- a/util/wait-for-name.c
+++ b/util/wait-for-name.c
@@ -50,6 +50,7 @@
 #endif
 
 #include <glib.h>
+#include <locale.h>
 
 #include <telepathy-glib/telepathy-glib.h>
 #include <telepathy-glib/telepathy-glib-dbus.h>
@@ -148,6 +149,8 @@ main (int argc,
   GError *error = NULL;
   GOptionContext *context;
 
+  setlocale (LC_ALL, "");
+
   g_set_prgname ("mc-wait-for-name");
 
   context = g_option_context_new ("- wait for a bus name");



More information about the telepathy-commits mailing list