mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
guniprop: Set jungseong and jongseong points to zero-width for Old Korean
This mirrors what `wcwidth()` from glibc does as of June 2020 (commit 6e540caa2). Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Fixes: #2564
This commit is contained in:
@@ -909,6 +909,11 @@ test_zerowidth (void)
|
||||
g_assert_false (g_unichar_iszerowidth (G_UNICODE_LAST_CHAR + 1));
|
||||
g_assert_false (g_unichar_iszerowidth (G_UNICODE_LAST_CHAR_PART1));
|
||||
g_assert_false (g_unichar_iszerowidth (G_UNICODE_LAST_CHAR_PART1 + 1));
|
||||
|
||||
/* Hangul Jamo Extended-B block, containing jungseong and jongseong for
|
||||
* Old Korean */
|
||||
g_assert_true (g_unichar_iszerowidth (0xD7B0));
|
||||
g_assert_true (g_unichar_iszerowidth (0xD7FB));
|
||||
}
|
||||
|
||||
/* Test that g_unichar_istitle() returns the correct value for various
|
||||
|
Reference in New Issue
Block a user