diff options
author | Rob Landley <rob@landley.net> | 2021-05-15 08:43:49 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2021-05-15 08:43:49 -0500 |
commit | 3748313ffd75cf177d90e209a269e17913fed111 (patch) | |
tree | 965ac9d907883debb7fb822d78fa2f57fc793b09 | |
parent | 4f927e39c7035ca5447090749eda59fc810886a6 (diff) | |
download | toybox-3748313ffd75cf177d90e209a269e17913fed111.tar.gz |
The (insane) unicode consortium arbitrarily limited the codepoint space
(utf8 can go to 7 bytes but unicode can't) so only test unicode range.
-rw-r--r-- | toys/example/demo_utf8towc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |