]> Kevux Git Server - fll/commitdiff
Bugfix: Currency symbols are incorrectly being designated as unassigned.
authorKevin Day <Kevin@kevux.org>
Sat, 19 Jul 2025 00:53:38 +0000 (19:53 -0500)
committerKevin Day <Kevin@kevux.org>
Sat, 19 Jul 2025 00:53:38 +0000 (19:53 -0500)
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  | ₿     ␊  |
```

level_0/f_utf/c/private-utf_unassigned.c

index 366da233af8cdcbbbe4c3efea9713caf4a70bd49..53843be9775a38363eca270ca3a9efe502dd4bb6 100644 (file)
@@ -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;
         }