head 1.1; access; symbols; locks; strict; comment @// @; 1.1 date 2026.09.06.10.05.18; author markd; state Exp; branches; next ; commitid ayO5Trpo3eONTxUG; desc @@ 1.1 log @KDE Frameworks: update to 6.29.0 3 months worth of updates @ text @$NetBSD$ is a c++20 feature but not in gcc12, so do it the old way. --- src/probers/nsCharSetProber.cpp.orig 2026-08-07 20:39:15.000000000 +0000 +++ src/probers/nsCharSetProber.cpp @@@@ -8,7 +8,7 @@@@ #include -#include +#include namespace kencodingprober { @@@@ -112,6 +112,8 @@@@ void nsCharSetProber::DumpStatus() std::string nsCharSetProber::StatusOutput(uint8_t /* indent */) { - return std::format("{:1.3f} [{}]", GetConfidence(), GetCharSetName()); + std::stringstream ss; + ss << std::fixed << std::setprecision(3) << GetConfidence() << " [" << GetCharSetName() << "]"; + return ss.str(); } } @