head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.10.15.19.44.23; author ktnb; state Exp; branches; next ; commitid LSxFfdjvSpVzRBZG; desc @@ 1.1 log @mblaze: update to 1.4 * mcom: $MBLAZE_EDITOR is prefered to configure the editor * mless: support OpenBSD less without LESSOPEN (needs mlesskey.example-openbsd) * magrep: support multibyte regexps. * Bug fixes. * Documentation improvements. @ text @$NetBSD$ NetBSD 11 ctype fix. --- msed.c.orig 2026-10-15 19:40:03.526630302 +0000 +++ msed.c @@@@ -48,7 +48,7 @@@@ subst(char *str, char *srch, char *repl, char *flags) char *t = repl; while (*t) { // & == \0 - if (*t == '&' || (*t == '\\' && isdigit(*(t+1)))) { + if (*t == '&' || (*t == '\\' && isdigit((unsigned char)*(t+1)))) { int n; if (*t == '&') { t++; @@@@ -88,7 +88,7 @@@@ printhdr(char *hdr, int rest) int uc = 1; while (*hdr && *hdr != ':') { - putc(uc ? toupper(*hdr) : *hdr, stdout); + putc(uc ? toupper((unsigned char)*hdr) : *hdr, stdout); uc = (*hdr == '-'); hdr++; } @