[libgxps] tools: Call setlocale in main function of gxps-converter-main.c
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgxps] tools: Call setlocale in main function of gxps-converter-main.c
- Date: Sun, 31 Jan 2016 09:39:59 +0000 (UTC)
commit ee1c25a031c0963bfd9b2c3223de6394b96a78a9
Author: Ting-Wei Lan <lantw src gnome org>
Date: Mon Jan 11 14:50:53 2016 +0800
tools: Call setlocale in main function of gxps-converter-main.c
It is required to correctly show translated messages on some locales.
https://bugzilla.gnome.org/show_bug.cgi?id=760437
tools/gxps-converter-main.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tools/gxps-converter-main.c b/tools/gxps-converter-main.c
index 20b7fda..7a7269c 100644
--- a/tools/gxps-converter-main.c
+++ b/tools/gxps-converter-main.c
@@ -20,12 +20,15 @@
#include <config.h>
#include <glib.h>
+#include <locale.h>
#include G_STRINGIFY(CONVERTER_HEADER)
gint main (gint argc, gchar **argv)
{
GXPSConverter *converter;
+ setlocale (LC_ALL, "");
+
g_type_init ();
converter = GXPS_CONVERTER (g_object_new (CONVERTER_TYPE, NULL));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]