[totem-pl-parser] Fix non-ASCII strings being used in the tests programs



commit cb381ad89e9d001e70ae6ca4918d831ac55609ee
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Nov 26 18:22:20 2009 +0000

    Fix non-ASCII strings being used in the tests programs

 plparse/tests/disc.c   |    3 +++
 plparse/tests/parser.c |    2 ++
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plparse/tests/disc.c b/plparse/tests/disc.c
index 59d9a3f..c1242d5 100644
--- a/plparse/tests/disc.c
+++ b/plparse/tests/disc.c
@@ -19,6 +19,7 @@
 
 #include "config.h"
 
+#include <locale.h>
 #include <glib.h>
 #include <gio/gio.h>
 
@@ -105,6 +106,8 @@ main (int argc, char *argv[])
 		{ NULL }
 	};
 
+	setlocale (LC_ALL, "");
+
 	g_type_init ();
 	g_test_init (&argc, &argv, NULL);
 	g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=";);
diff --git a/plparse/tests/parser.c b/plparse/tests/parser.c
index 30cc65e..b9f0cd8 100644
--- a/plparse/tests/parser.c
+++ b/plparse/tests/parser.c
@@ -411,6 +411,8 @@ main (int argc, char *argv[])
 		{ NULL }
 	};
 
+	setlocale (LC_ALL, "");
+
 	g_type_init ();
 	g_test_init (&argc, &argv, NULL);
 	g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=";);



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