]> Kevux Git Server - fll/commitdiff
Bugfix: Three-width UTF-8 characters are improperly being detected as unassigned.
authorKevin Day <thekevinday@gmail.com>
Fri, 15 Apr 2022 02:36:43 +0000 (21:36 -0500)
committerKevin Day <thekevinday@gmail.com>
Fri, 15 Apr 2022 02:52:37 +0000 (21:52 -0500)
This is due to a simple typo where the last two digits (the zeros) are missing from the hex digit.

The UTF-8 character sequence for U+FFF0 is 0xef 0xbf 0xb0.

level_0/f_utf/c/utf/private-is_unassigned.c

index a9a76357ebbd872b52c6764cacb03bd482638616..dcd7d6f5ea6a4c48e5c3c92e4ba801f45d247403 100644 (file)
@@ -1341,7 +1341,7 @@ extern "C" {
       }
 
       // Specials: U+FFF0 to U+FFF8.
-      if (character >= 0xefb000 && character <= 0xefbfb800) {
+      if (character >= 0xefbfb000 && character <= 0xefbfb800) {
         return F_true;
       }