summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw@src.gnome.org>2016-01-11 15:07:56 +0800
committerGeorge Kiagiadakis <gkiagia@tolabaki.gr>2016-07-18 17:17:05 +0300
commitc5589bdc4ded0382adf6ba9ffc5c27f8a6e0568d (patch)
tree40ccbe47b78a211e227a2b0a5914f3b7adc20980
parentcbe4ec1a4e1167ce8231849bcbbdec44d48422f2 (diff)
downloadtelepathy-mission-control-c5589bdc4ded0382adf6ba9ffc5c27f8a6e0568d.tar.gz
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
-rw-r--r--util/wait-for-name.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/wait-for-name.c b/util/wait-for-name.c
index 13f2f5bd..6a27723e 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");