head 1.2; access; symbols; locks; strict; comment @// @; 1.2 date 2026.05.30.12.56.30; author ryoon; state Exp; branches; next 1.1; commitid whMq4qbE2vtE2QHG; 1.1 date 2026.05.13.18.34.47; author ktnb; state Exp; branches; next ; commitid E0Bl6QnivA8zsGFG; desc @@ 1.2 log @mail/mu: Fix some more ctype(3) abuses not to abort indexing * Fix PLISTs for mu-emacs option. * Bump PKGREVISION. @ text @$NetBSD: patch-lib_utils_mu-utils.cc,v 1.1 2026/05/13 18:34:47 ktnb Exp $ ctype(3) for NetBSD 11 --- lib/utils/mu-utils.cc.orig 2026-04-27 19:03:29.000000000 +0000 +++ lib/utils/mu-utils.cc @@@@ -167,7 +167,7 @@@@ asciify_in_place (char *buf) g_return_val_if_fail (buf, NULL); for (c = buf; c && *c; ++c) { - if ((!isprint(*c) && !isspace (*c)) || !isascii(*c)) + if ((!isprint(static_cast(*c)) && !isspace (static_cast(*c))) || !isascii(static_cast(*c))) *c = '.'; } @@@@ -269,7 +269,7 @@@@ Mu::remove_ctrl(const std::string& str) result.reserve(str.length()); for (auto&& c : str) { - if (::iscntrl(c) || c == ' ') { + if (::iscntrl(static_cast(c)) || c == ' ') { if (prev != ' ') result += prev = ' '; } else @ 1.1 log @mu: found more ctype bugs @ text @d1 1 a1 1 $NetBSD$ d7 9 @