summaryrefslogtreecommitdiff
path: root/glib/patches/0010-Fix-locale-for-unicode-collate-test.patch
blob: cda78057be8fab5bbee5d101972783da502720fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From c7461138f1e8eb227ede2ab5ed605576e7cc7f81 Mon Sep 17 00:00:00 2001
From: Rafael Ostertag <rafisol@opencsw.org>
Date: Fri, 24 Aug 2012 21:25:31 +0200
Subject: [PATCH] Fix locale for unicode-collate test

---
 tests/unicode-collate.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/unicode-collate.c b/tests/unicode-collate.c
index 785f169..9897564 100644
--- a/tests/unicode-collate.c
+++ b/tests/unicode-collate.c
@@ -44,9 +44,9 @@ int main (int argc, char **argv)
   /* FIXME: need to modify environment here,
    * since g_utf8_collate_key calls setlocal (LC_COLLATE, "")
    */
-  g_setenv ("LC_ALL", "en_US", TRUE);
+  g_setenv ("LC_ALL", "en_US.UTF-8", TRUE);
   locale = setlocale (LC_ALL, "");
-  if (locale == NULL || strcmp (locale, "en_US") != 0)
+  if (locale == NULL || strcmp (locale, "en_US.UTF-8") != 0)
     {
       fprintf (stderr, "No suitable locale, skipping test\n"); 
       return 2;
-- 
1.7.11.3