[glib/glib-2-32] tests/date: force English locale running the GDateTime tests
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-32] tests/date: force English locale running the GDateTime tests
- Date: Tue, 1 May 2012 05:18:16 +0000 (UTC)
commit 485c5fcf4880f3a6d92d4b0160e34253418a739c
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Apr 16 10:45:12 2012 -0400
tests/date: force English locale running the GDateTime tests
The parsing test needs to make some assumption about the locale
representation of the string to be parsed, so we need to explicitly
override the locale here.
glib/tests/date.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/date.c b/glib/tests/date.c
index 38ccc68..51b51e2 100644
--- a/glib/tests/date.c
+++ b/glib/tests/date.c
@@ -351,6 +351,7 @@ main (int argc, char** argv)
3000, 3001, 3002, 3998, 3999, 4000, 4001, 4002, 4003
};
+ 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]