forked from AuroraMiddleware/gtk
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:
parent
b8db48079f
commit
f4d2d66b1e
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user