summaryrefslogtreecommitdiff
path: root/tests/test-layout.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-05-28 03:58:23 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-06-03 15:00:03 +0000
commit113c0b53c2f26923dd7cf22ff59657ea723e5fce (patch)
tree5ec4992ffff6a9c02f0490561e941c63add26285 /tests/test-layout.c
parenta9fe5ee51281d5e1103ded6be2283749823c5650 (diff)
downloadpango-113c0b53c2f26923dd7cf22ff59657ea723e5fce.tar.gz
layout test: Use a better locale
We need to use a Unicode locale in order to test Emoji and similar glyphs.
Diffstat (limited to 'tests/test-layout.c')
-rw-r--r--tests/test-layout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-layout.c b/tests/test-layout.c
index 4bce4439..c4d01ccc 100644
--- a/tests/test-layout.c
+++ b/tests/test-layout.c
@@ -261,6 +261,7 @@ test_file (const gchar *filename, GString *string)
g_assert (p);
markup = p + 1;
*p = '\0';
+ length = strlen (markup);
parse_params (contents, &width, &ellipsize_at, &ellipsize, &wrap);
@@ -347,7 +348,7 @@ main (int argc, char *argv[])
const gchar *name;
gchar *path;
- g_setenv ("LC_ALL", "C", TRUE);
+ g_setenv ("LC_ALL", "en_US.UTF-8", TRUE);
setlocale (LC_ALL, "");
g_test_init (&argc, &argv, NULL);