[gegl] gegl-tester: Call setlocale in main function



commit e597a3e66903e4eaa2fe4ae6657dedd6387dcef2
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Mon Jan 11 13:46:42 2016 +0800

    gegl-tester: Call setlocale in main function
    
    It is required to correctly show translated messages on some locales.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=760422

 bin/gegl-tester.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/bin/gegl-tester.c b/bin/gegl-tester.c
index 201e6d9..816fa62 100644
--- a/bin/gegl-tester.c
+++ b/bin/gegl-tester.c
@@ -19,6 +19,7 @@
 #include <glib.h>
 #include <gegl.h>
 #include <gegl-plugin.h>
+#include <locale.h>
 #include <string.h>
 #include <glib/gprintf.h>
 
@@ -333,6 +334,8 @@ main (gint    argc,
   GError         *error = NULL;
   GOptionContext *context;
 
+  setlocale (LC_ALL, "");
+
   context = g_option_context_new (NULL);
   g_option_context_add_main_entries (context, options, NULL);
   g_option_context_add_group (context, gegl_get_option_group ());


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]