[glib] Call setlocale in markup-parse test



commit 08e17ae51b6336d059b0cc85071cc26772ab2f0c
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Oct 6 08:59:51 2011 -0400

    Call setlocale in markup-parse test
    
    This is necessary to make utf-8 text come out properly.

 glib/tests/markup-parse.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/markup-parse.c b/glib/tests/markup-parse.c
index fa45b77..00191d7 100644
--- a/glib/tests/markup-parse.c
+++ b/glib/tests/markup-parse.c
@@ -1,6 +1,7 @@
 #undef G_DISABLE_ASSERT
 #undef G_LOG_DOMAIN
 
+#include <locale.h>
 #include <string.h>
 #include <stdio.h>
 #include <glib.h>
@@ -261,6 +262,8 @@ main (int argc, char *argv[])
   const gchar *name;
   gchar *path;
 
+  setlocale (LC_ALL, "");
+
   g_test_init (&argc, &argv, NULL);
 
   /* allow to easily generate expected output for new test cases */



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