From 0f02ba3d902aaed56c030021aef1f76af3cb24a2 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Thu, 28 Dec 2023 09:48:05 +0900 Subject: [PATCH] libc: wcwidth: latest UCD data --- libc/wchar/wcwidth.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libc/wchar/wcwidth.c b/libc/wchar/wcwidth.c index 53019ea7..30201203 100644 --- a/libc/wchar/wcwidth.c +++ b/libc/wchar/wcwidth.c @@ -872,8 +872,6 @@ int wcwidth(wchar_t wc) { else if (wc < 0x2f00) return -1; else if (wc < 0x2fd6) return 2; else if (wc < 0x2ff0) return -1; - else if (wc < 0x2ffc) return 2; - else if (wc < 0x3000) return -1; else if (wc < 0x302a) return 2; else if (wc < 0x302e) return 0; else if (wc < 0x303f) return 2; @@ -889,7 +887,7 @@ int wcwidth(wchar_t wc) { else if (wc < 0x318f) return 2; else if (wc < 0x3190) return -1; else if (wc < 0x31e4) return 2; - else if (wc < 0x31f0) return -1; + else if (wc < 0x31ef) return -1; else if (wc < 0x321f) return 2; else if (wc < 0x3220) return -1; else if (wc < 0x3248) return 2;