diff options
Diffstat (limited to 'glib/patches/0010-Fix-locale-for-unicode-collate-test.patch')
-rw-r--r-- | glib/patches/0010-Fix-locale-for-unicode-collate-test.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/glib/patches/0010-Fix-locale-for-unicode-collate-test.patch b/glib/patches/0010-Fix-locale-for-unicode-collate-test.patch new file mode 100644 index 0000000..cda7805 --- /dev/null +++ b/glib/patches/0010-Fix-locale-for-unicode-collate-test.patch @@ -0,0 +1,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 + |