]> Kevux Git Server - fll/commitdiff
Bugfix: Incorrect 4-width characters are generated.
authorKevin Day <thekevinday@gmail.com>
Sat, 11 Jun 2022 02:18:14 +0000 (21:18 -0500)
committerKevin Day <thekevinday@gmail.com>
Sat, 11 Jun 2022 02:18:14 +0000 (21:18 -0500)
This is caused by a simple typo.

level_0/f_utf/c/private-utf.c

index 13232337bc6a1dafc019f3f7711143cd2a797e3f..4dff8f161631cdbd0c0131ca74db0ea3d69772a0 100644 (file)
@@ -80,7 +80,7 @@ extern "C" {
     else if (macro_f_utf_char_t_width(character) == 4) {
       *unicode = (macro_f_utf_char_t_to_char_1(character) & 0x7) << 18;
       *unicode |= (macro_f_utf_char_t_to_char_2(character) & 0x3f) << 12;
-      *unicode |= (macro_f_utf_char_t_to_char_2(character) & 0x3f) << 6;
+      *unicode |= (macro_f_utf_char_t_to_char_3(character) & 0x3f) << 6;
       *unicode |= macro_f_utf_char_t_to_char_4(character) & 0x3f;
     }