Make the markup-parse test independent of the locale
authorMatthias Clasen <mclasen@redhat.com>
Fri, 13 Apr 2012 13:31:08 +0000 (09:31 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 13 Apr 2012 13:39:48 +0000 (09:39 -0400)
I added a setlocale call, because we need it for Unicode to
come out right; but I forgot to fix the locale, so we now
fail when comparing error messages to the expected (English)
result. Correct this by setting LANG explicitly to en_US.utf-8.

https://bugzilla.gnome.org/show_bug.cgi?id=669285

glib/tests/markup-parse.c

index 7c1a044..5adc272 100644 (file)
@@ -281,6 +281,7 @@ main (int argc, char *argv[])
   const gchar *name;
   gchar *path;
 
+  g_setenv ("LANG", "en_US.utf-8", TRUE);
   setlocale (LC_ALL, "");
 
   g_test_init (&argc, &argv, NULL);