summaryrefslogtreecommitdiff
path: root/gdata
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2014-09-21 13:49:18 +0100
committerPhilip Withnall <philip@tecnocode.co.uk>2014-09-21 13:58:23 +0100
commit805e6c94cf1792ca912ec1f280d355f06702840e (patch)
tree9ee049be221dccfa5f09b509572d94a7cce17afd /gdata
parentc54b759085dfeb5f59aea7d1ac620620958ac29e (diff)
downloadlibgdata-805e6c94cf1792ca912ec1f280d355f06702840e.tar.gz
tests: Call setlocale() on startup
So that the correct character encoding is set for all tests.
Diffstat (limited to 'gdata')
-rw-r--r--gdata/tests/common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdata/tests/common.c b/gdata/tests/common.c
index 1193a7ca..14c06f9e 100644
--- a/gdata/tests/common.c
+++ b/gdata/tests/common.c
@@ -19,6 +19,7 @@
#include <glib.h>
#include <glib-object.h>
+#include <locale.h>
#include <stdio.h>
#include <string.h>
#include <libxml/parser.h>
@@ -51,6 +52,8 @@ gdata_test_init (int argc, char **argv)
GError *child_error = NULL;
gint i;
+ setlocale (LC_ALL, "");
+
#if !GLIB_CHECK_VERSION (2, 35, 0)
g_type_init ();
#endif