hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 1682bebc05108932a716487458ba23e95472731c
parent 834b1e4f6ab7a09b67126b234fb9e263ff69cd8e
Author: Sebastian <sebastian@sebsite.pw>
Date:   Thu, 23 Jun 2022 19:23:34 -0400

encoding::utf8: don't recognize 5/6 octet sequences as valid

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mencoding/utf8/rune.ha | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/encoding/utf8/rune.ha b/encoding/utf8/rune.ha @@ -15,8 +15,6 @@ const sizes: [_]rsize = [ rsize { mask = 0xE0, result = 0xC0, octets = 2 }, rsize { mask = 0xF0, result = 0xE0, octets = 3 }, rsize { mask = 0xF8, result = 0xF0, octets = 4 }, - rsize { mask = 0xFC, result = 0xF8, octets = 5 }, - rsize { mask = 0xFE, result = 0xF8, octets = 6 }, ]; // Returns the size of a rune, in octets, when encoded as UTF-8.