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/nsLatin1Prober.cpp.orig 2026-08-07 20:39:15.000000000 +0000 +++ src/probers/nsLatin1Prober.cpp @@@@ -6,7 +6,7 @@@@ #include "nsLatin1Prober.h" -#include +#include #include #define UDF 0 // undefined @@@@ -135,13 +135,13 @@@@ float nsLatin1Prober::GetConfidence(void std::string nsLatin1Prober::StatusOutput(uint8_t /* indent */) { - return std::format( // - "{:1.3f} [{}] [{} {} {} {}]", - GetConfidence(), - GetCharSetName(), - mFreqCounter[0], - mFreqCounter[1], - mFreqCounter[2], - mFreqCounter[3]); + std::stringstream ss; + ss << std::fixed << std::setprecision(3) << GetConfidence() + << " [" << GetCharSetName() << "] [" + << mFreqCounter[0] << " " + << mFreqCounter[1] << " " + << mFreqCounter[2] << " " + << mFreqCounter[3] << "]"; + return ss.str(); } } @