[pango/emoji-layout-test: 1/3] layout test: Use a better locale
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/emoji-layout-test: 1/3] layout test: Use a better locale
- Date: Mon, 3 Jun 2019 15:00:45 +0000 (UTC)
commit 113c0b53c2f26923dd7cf22ff59657ea723e5fce
Author: Matthias Clasen <mclasen redhat com>
Date: Tue May 28 03:58:23 2019 +0000
layout test: Use a better locale
We need to use a Unicode locale in order to test
Emoji and similar glyphs.
tests/test-layout.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]