broadway: Call setlocale in main function of broadwayd

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

https://bugzilla.gnome.org/show_bug.cgi?id=760416
This commit is contained in:
Ting-Wei Lan 2016-01-11 11:46:45 +08:00 committed by Matthias Clasen
parent b8db48079f
commit f4d2d66b1e

View File

@ -7,6 +7,7 @@
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <locale.h>
#include <glib.h>
#include <gio/gio.h>
@ -434,6 +435,8 @@ main (int argc, char *argv[])
{ NULL }
};
setlocale (LC_ALL, "");
context = g_option_context_new ("[:DISPLAY] - broadway display daemon");
g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE);
if (!g_option_context_parse (context, &argc, &argv, &error))