From c7461138f1e8eb227ede2ab5ed605576e7cc7f81 Mon Sep 17 00:00:00 2001 From: Rafael Ostertag 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