head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.08.11.14.21.47; author riastradh; state Exp; branches; next ; commitid pftVZIdqGCIraeRG; desc @@ 1.1 log @net/transmission: Fix ctype abuse. Excluding the third-party/ directory for now -- lot more patching to do for that. PR pkg/60574: transmission-daemon etc. abort on invalid toupper(3) call @ text @$NetBSD$ --- libtransmission/utils.h.orig 2026-06-29 23:12:56.000000000 +0000 +++ libtransmission/utils.h @@@@ -94,7 +94,7 @@@@ template [[nodiscard]] std::string tr_strlower(T in) { auto out = std::string{ std::move(in) }; - std::for_each(std::begin(out), std::end(out), [](char& ch) { ch = std::tolower(ch); }); + std::for_each(std::begin(out), std::end(out), [](char& ch) { ch = std::tolower(static_cast(ch)); }); return out; } @@@@ -102,7 +102,7 @@@@ template [[nodiscard]] std::string tr_strupper(T in) { auto out = std::string{ std::move(in) }; - std::for_each(std::begin(out), std::end(out), [](char& ch) { ch = std::toupper(ch); }); + std::for_each(std::begin(out), std::end(out), [](char& ch) { ch = std::toupper(static_cast(ch)); }); return out; } @