From: Kevin Day Date: Sat, 19 Jul 2025 00:53:38 +0000 (-0500) Subject: Bugfix: Currency symbols are incorrectly being designated as unassigned. X-Git-Tag: 0.6.15~5 X-Git-Url: https://www.git.kevux.org/?a=commitdiff_plain;h=18763edad3d017ef380659422c324392463140fa;p=fll Bugfix: Currency symbols are incorrectly being designated as unassigned. An improper check in `private_f_utf_character_is_unassigned()` is resulting in valid currency symbols being treated as undefined. Example: ``` # echo "₿" | byte_dump -wt 4 Piped Byte Dump: (in Hexidecimal) 0000000000000000 e2 82 bf 0a | � ␊ | Invalid UTF-8 codes were detected for file '-'. ``` The following is the expected valid results: ``` # echo "₿" | byte_dump -wt 4 Piped Byte Dump: (in Hexidecimal) 0000000000000000 e2 82 bf 0a | ₿ ␊ | ``` --- diff --git a/level_0/f_utf/c/private-utf_unassigned.c b/level_0/f_utf/c/private-utf_unassigned.c index 366da23..53843be 100644 --- a/level_0/f_utf/c/private-utf_unassigned.c +++ b/level_0/f_utf/c/private-utf_unassigned.c @@ -909,8 +909,8 @@ extern "C" { return F_true; } - // Currency Symbols: U+20BF to U+20CF. - if (sequence >= 0xe282bf00 && sequence <= 0xe2838f00) { + // Currency Symbols: U+20C1 to U+20CF. + if (sequence >= 0xe2838100 && sequence <= 0xe2838f00) { return F_true; }