diff options
author | Ting-Wei Lan <lantw@src.gnome.org> | 2016-01-11 15:07:56 +0800 |
---|---|---|
committer | George Kiagiadakis <gkiagia@tolabaki.gr> | 2016-07-18 17:17:05 +0300 |
commit | c5589bdc4ded0382adf6ba9ffc5c27f8a6e0568d (patch) | |
tree | 40ccbe47b78a211e227a2b0a5914f3b7adc20980 | |
parent | cbe4ec1a4e1167ce8231849bcbbdec44d48422f2 (diff) | |
download | telepathy-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.c | 3 |
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"); |