[pango/bidi-adventures: 1/2] tests: Avoid bidi in test output
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/bidi-adventures: 1/2] tests: Avoid bidi in test output
- Date: Thu, 5 Aug 2021 18:46:22 +0000 (UTC)
commit 19cfd77817f24bfa2e8c3c5d4854aa8a4faa41e4
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Aug 4 20:35:18 2021 -0400
tests: Avoid bidi in test output
When rendering the text char-by-char, use directional
controls to avoid any bidi reordering.
tests/test-break.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/tests/test-break.c b/tests/test-break.c
index 66c207a5..d59971a0 100644
--- a/tests/test-break.c
+++ b/tests/test-break.c
@@ -219,7 +219,9 @@ test_file (const gchar *filename, GString *string)
!(g_unichar_type (ch) == G_UNICODE_LINE_SEPARATOR ||
g_unichar_type (ch) == G_UNICODE_PARAGRAPH_SEPARATOR))
{
+ g_string_append_unichar (string, 0x2066); // LRI
g_string_append_unichar (string, ch);
+ g_string_append_unichar (string, 0x2069); // PDI
g_string_append (s1, " ");
g_string_append (s2, " ");
g_string_append (s3, " ");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]