head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.4 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.2 pkgsrc-2025Q4-base:1.1; locks; strict; comment @// @; 1.1 date 2025.11.22.20.25.05; author leot; state Exp; branches; next ; commitid pzIdeI7MxaUFAAjG; desc @@ 1.1 log @hunspell: Fix a ctype(3) abuse There are probably other ctype(3) abuses but "-Wall" does not seem to work when is included because the macros get undef-ed and that one was exercised the hard way via `hunspell -t`. PKGREVISION++ @ text @$NetBSD$ Avoid ctype(3) abuses. --- src/parsers/latexparser.cxx.orig 2025-11-22 19:50:34.936082555 +0000 +++ src/parsers/latexparser.cxx @@@@ -157,7 +157,7 @@@@ int LaTeXParser::look_pattern(int col) { const char* k = PATTERN[i].pat[col]; if (!k) continue; - while ((*k != '\0') && (tolower(*j) == *k)) { + while ((*k != '\0') && (tolower((unsigned char)*j) == *k)) { j++; k++; } @