From d4a58cfec5345bbb2bb0db1e85172a8cff278da7 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Tue, 24 Jul 2018 13:18:48 -0400 Subject: update data and algorithms for Unicode 11 (#140) --- test/case.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/case.c') diff --git a/test/case.c b/test/case.c index a267609..b3947e2 100644 --- a/test/case.c +++ b/test/case.c @@ -19,7 +19,9 @@ int main(int argc, char **argv) check(u == c || utf8proc_codepoint_valid(u), "invalid toupper"); check(t == c || utf8proc_codepoint_valid(t), "invalid totitle"); - if (utf8proc_codepoint_valid(c) && (l == u) != (l == t)) { + if (utf8proc_codepoint_valid(c) && (l == u) != (l == t) && + /* Unicode 11: Georgian Mkhedruli chars have uppercase but no titlecase. */ + !(((c >= 0x10d0 && c <= 0x10fa) || c >= (0x10fd && c <= 0x10ff)) && l != u)) { fprintf(stderr, "unexpected titlecase %x for lowercase %x / uppercase %x\n", t, l, c); ++error; } -- cgit v1.2.3