projects
/
fll
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fb4f9b
)
Bugfix: Three-width UTF-8 characters are improperly being detected as unassigned.
author
Kevin Day
<thekevinday@gmail.com>
Fri, 15 Apr 2022 02:36:43 +0000
(21:36 -0500)
committer
Kevin 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
patch
|
blob
|
history
diff --git
a/level_0/f_utf/c/utf/private-is_unassigned.c
b/level_0/f_utf/c/utf/private-is_unassigned.c
index a9a76357ebbd872b52c6764cacb03bd482638616..dcd7d6f5ea6a4c48e5c3c92e4ba801f45d247403 100644
(file)
--- a/
level_0/f_utf/c/utf/private-is_unassigned.c
+++ b/
level_0/f_utf/c/utf/private-is_unassigned.c
@@
-1341,7
+1341,7
@@
extern "C" {
}
// Specials: U+FFF0 to U+FFF8.
- if (character >= 0xefb000 && character <= 0xefbfb800) {
+ if (character >= 0xefb
fb
000 && character <= 0xefbfb800) {
return F_true;
}