[glib] Make the markup-parse test independent of the locale



commit 50aed1cc8f5cfc18d389c5e1c059368482fba56d
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Apr 13 09:31:08 2012 -0400

    Make the markup-parse test independent of the locale
    
    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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/markup-parse.c b/glib/tests/markup-parse.c
index 7c1a044..5adc272 100644
--- a/glib/tests/markup-parse.c
+++ b/glib/tests/markup-parse.c
@@ -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);



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