From 1e04bbca6520200b47dfcf1a1d71ad8046793548 Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Mon, 11 Jan 2016 15:07:56 +0800 Subject: [PATCH] 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 +#include #include #include @@ -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"); -- 2.7.0