Commit 7198a55e authored by Ting-Wei Lan's avatar Ting-Wei Lan Committed by Michael Catanzaro

tools: Call setlocale in gl-helper and gles-helper

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

https://bugzilla.gnome.org/show_bug.cgi?id=765487
parent e5d5692f
......@@ -71,6 +71,7 @@
#define _GNU_SOURCE
#include <ctype.h>
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......@@ -418,6 +419,8 @@ main (int argc, char **argv)
GError *error = NULL;
char *renderer = NULL;
setlocale (LC_ALL, "");
context = g_option_context_new (NULL);
g_option_context_add_main_entries (context, entries, NULL);
......
......@@ -24,6 +24,7 @@
#include <config.h>
#include <gtk/gtk.h>
#include <locale.h>
#include <stdlib.h>
#ifdef GDK_WINDOWING_X11
......@@ -166,6 +167,8 @@ main (int argc,
int ret = HELPER_NO_ACCEL;
GError *error = NULL;
setlocale (LC_ALL, "");
context = g_option_context_new (NULL);
g_option_context_add_group (context, gtk_get_option_group (TRUE));
g_option_context_add_main_entries (context, entries, NULL);
......
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