libc/wchar: Fix unicode range - scc - simple c99 compiler
 (HTM) git clone git://git.simple-cc.org/scc
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 94afd0b6e12799c59effe955f41b3aaf53003ed7
 (DIR) parent d0c96fd6db74dca3d53aca43116de9597c43944b
 (HTM) 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:
         M src/libc/wchar/_validutf8.c         |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) 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;