Commit f4d2d66b authored by Ting-Wei Lan's avatar Ting-Wei Lan Committed by Matthias Clasen

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
parent b8db4807
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment