mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
gio-querymodules: Call setlocale in main function
It is required to correctly show translated messages on some locales. https://bugzilla.gnome.org/show_bug.cgi?id=760423
This commit is contained in:
parent
63654183a8
commit
cef799377e
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
#include <gstdio.h>
|
#include <gstdio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <locale.h>
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
is_valid_module_name (const gchar *basename)
|
is_valid_module_name (const gchar *basename)
|
||||||
@ -134,6 +135,8 @@ main (gint argc,
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setlocale (LC_ALL, "");
|
||||||
|
|
||||||
/* Be defensive and ensure we're linked to GObject */
|
/* Be defensive and ensure we're linked to GObject */
|
||||||
g_type_ensure (G_TYPE_OBJECT);
|
g_type_ensure (G_TYPE_OBJECT);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user