summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-09-20 08:58:32 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-09-20 09:51:35 -0400
commit03d07dbbdfe647164fc8c505eca40c2d6c4acd90 (patch)
treed1459b7da8700654782e1852a0fd41b0012e6999
parent29822872987e43357d06be849d327a3ae0bca841 (diff)
downloadglib-unicode-14-updates.tar.gz
Add new scripts to our iso15924 apisunicode-14-updates
The scripts aren't technically part of the standard yet, but thats only a matter of (hopefully short) time.
-rw-r--r--glib/guniprop.c8
-rw-r--r--glib/tests/unicode.c7
2 files changed, 15 insertions, 0 deletions
diff --git a/glib/guniprop.c b/glib/guniprop.c
index 2903367d4..f2b56ed5f 100644
--- a/glib/guniprop.c
+++ b/glib/guniprop.c
@@ -1486,6 +1486,14 @@ static const guint32 iso15924_tags[] =
PACK ('D', 'i', 'a', 'k'), /* G_UNICODE_SCRIPT_DIVES_AKURU */
PACK ('K', 'i', 't', 's'), /* G_UNICODE_SCRIPT_KHITAN_SMALL_SCRIPT */
PACK ('Y', 'e', 'z', 'i'), /* G_UNICODE_SCRIPT_YEZIDI */
+
+ /* Unicode 14.0 additions */
+ PACK ('C', 'p', 'm', 'n'), /* G_UNICODE_SCRIPT_CYPRO_MINOAN */
+ PACK ('O', 'u', 'g', 'r'), /* G_UNICODE_SCRIPT_OLD_UYHUR */
+ PACK ('T', 'n', 's', 'a'), /* G_UNICODE_SCRIPT_TANGSA */
+ PACK ('T', 'o', 't', 'o'), /* G_UNICODE_SCRIPT_TOTO */
+ PACK ('V', 'i', 't', 'h'), /* G_UNICODE_SCRIPT_VITHKUQI */
+
#undef PACK
};
diff --git a/glib/tests/unicode.c b/glib/tests/unicode.c
index 6049260ec..9d6596687 100644
--- a/glib/tests/unicode.c
+++ b/glib/tests/unicode.c
@@ -1671,6 +1671,13 @@ test_iso15924 (void)
{ G_UNICODE_SCRIPT_DIVES_AKURU, "Diak" },
{ G_UNICODE_SCRIPT_KHITAN_SMALL_SCRIPT, "Kits" },
{ G_UNICODE_SCRIPT_YEZIDI, "Yezi" },
+
+ /* Unicode 14.0 additions */
+ { G_UNICODE_SCRIPT_CYPRO_MINOAN, "Cpmn" },
+ { G_UNICODE_SCRIPT_OLD_UYGHUR, "Ougr" },
+ { G_UNICODE_SCRIPT_TANGSA, "Tnsa" },
+ { G_UNICODE_SCRIPT_TOTO, "Toto" },
+ { G_UNICODE_SCRIPT_VITHKUQI, "Vith" }
};
guint i;