From 3748313ffd75cf177d90e209a269e17913fed111 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 15 May 2021 08:43:49 -0500 Subject: The (insane) unicode consortium arbitrarily limited the codepoint space (utf8 can go to 7 bytes but unicode can't) so only test unicode range. --- toys/example/demo_utf8towc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/example/demo_utf8towc.c b/toys/example/demo_utf8towc.c index c0522543..136be6ca 100644 --- a/toys/example/demo_utf8towc.c +++ b/toys/example/demo_utf8towc.c @@ -23,7 +23,7 @@ void demo_utf8towc_main(void) wchar_t wc1, wc2; memset(&mb, 0, sizeof(mb)); - for (u=1; u; u++) { + for (u = 1; u<=0x10ffff; u++) { char *str = (void *)&h; wc1 = wc2 = 0; -- cgit v1.2.3