head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.08.28.01.52.12; author tsutsui; state Exp; branches; next ; commitid KgzA4ScmXSl6slTG; desc @@ 1.1 log @fctix: add missing ctype abuse fix patches Two patches from the netbsd-11 ctype-abuse fixes of 2025-12-07 were listed in distinfo r1.8 but apparently never committed. https://mail-index.netbsd.org/pkgsrc-changes/2025/12/07/msg335023.html This should fix bulk build on NetBSD 11.0 hosts, and should be pulled up to pkgsrc-2026Q2. @ text @$NetBSD$ Fix ctype abuse by casting to unsigned char --- tools/cli/txt2mb.c.orig 2026-08-28 01:40:49.733711639 +0000 +++ tools/cli/txt2mb.c @@@@ -361,13 +361,13 @@@@ int main(int argc, char *argv[]) buf1 = fcitx_utils_trim(buf); char *p = buf1; - while (*p && !isspace(*p)) + while (*p && !isspace((unsigned char) *p)) p ++; if (*p == '\0') continue; - while (isspace(*p)) { + while (isspace((unsigned char) *p)) { *p = '\0'; p ++; } @