From 785d02f0cfdef3faef3557ad792d3a9e70e23051 Mon Sep 17 00:00:00 2001 From: Benjamin Konrad Dawkins <13179138+LemonatedCat@users.noreply.github.com> Date: Sun, 26 Jul 2026 20:03:30 +0200 Subject: [PATCH] Fix duplicated entries within unicode_spaces and space_ranges Somewhere on the creation of these tables, the `0x3000-0x3000` range seemingly slipped in an additional time. Since binary search is done on both `unicode_spaces` and `space_ranges`, i doubt this is intentional behavior, as this unsorts the tables. --- core/unicode/tables.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/unicode/tables.odin b/core/unicode/tables.odin index abbf9189b..eaedabec8 100644 --- a/core/unicode/tables.odin +++ b/core/unicode/tables.odin @@ -474,7 +474,7 @@ space_ranges := [?]i32{ 0x1680, 0x1680, // Ogham space mark 0x2000, 0x200b, // en dash .. zero-width space 0x200e, 0x200f, // LTR mark .. RTL mark (pattern whitespace) - 0x2028, 0x2029, 0x3000, 0x3000, + 0x2028, 0x2029, // paragraph and line seperators 0x202f, 0x202f, // narrow no-break space 0x205f, 0x205f, // medium mathematical space 0x3000, 0x3000, // ideographic space @@ -492,7 +492,7 @@ unicode_spaces := [?]i32{ 0x1680, // Ogham space mark 0x2000, // en dash .. zero-width space 0x200e, 0x200f, // LTR mark .. RTL mark (pattern whitespace) - 0x2028, 0x2029, 0x3000, 0x3000, + 0x2028, 0x2029, // paragraph and line seperators 0x202f, // narrow no-break space 0x205f, // medium mathematical space 0x3000, // ideographic space