commit 94afd0b6e12799c59effe955f41b3aaf53003ed7
parent d0c96fd6db74dca3d53aca43116de9597c43944b
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date:   Thu, 20 Mar 2025 17:01:44 +0100
libc/wchar: Fix unicode range
Unicode codepoints are defined to be smaller than 0x110000, but
the table missed a 0, defining wrongly the last invalid range.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libc/wchar/_validutf8.c b/src/libc/wchar/_validutf8.c
@@ -19,7 +19,7 @@ _validutf8(wchar_t wc, int *nbytes)
 		{0xD800,    0xDD00,     0, 3},
 		{0xDD00,    0x10000,    1, 3},
 		{0x10000,   0x110000,   1, 4},
-		{0x11000,   -1ul,       0, 0},
+		{0x110000,  -1ul,       0, 0},
 	};
 	struct range *bp;