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 --- src/im/pinyin/sp.c.orig 2026-08-28 01:41:25.905117302 +0000 +++ src/im/pinyin/sp.c @@@@ -137,7 +137,7 @@@@ void LoadSPData(FcitxPinyinState *pystat continue; if (pstr[0] == '=') //是零声母设置 - pyconfig->cNonS = tolower(pstr[1]); + pyconfig->cNonS = tolower((unsigned char) pstr[1]); else { i = 0; @@@@ -150,12 +150,12 @@@@ void LoadSPData(FcitxPinyinState *pystat i = GetSPIndexQP_S(pyconfig, strS); if (i != -1) - SPMap_S[i].cJP = tolower(pstr[1]); + SPMap_S[i].cJP = tolower((unsigned char) pstr[1]); else { i = GetSPIndexQP_C(pyconfig, strS); if (i != -1) - SPMap_C[i].cJP = tolower(pstr[1]); + SPMap_C[i].cJP = tolower((unsigned char) pstr[1]); } break; @