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/nsSBCharSetProber.cpp.orig 2026-08-07 20:39:15.000000000 +0000 +++ src/probers/nsSBCharSetProber.cpp @@@@ -6,7 +6,7 @@@@ #include "nsSBCharSetProber.h" -#include +#include namespace kencodingprober { @@@@ -82,16 +82,16 @@@@ const char *nsSingleByteCharSetProber std::string nsSingleByteCharSetProber::StatusOutput(uint8_t /* indent */) { - return std::format( // - "{:1.3f} [{}] [{} {} {} {} | {}] [{} / {}]", - GetConfidence(), - GetCharSetName(), - mSeqCounters[0], - mSeqCounters[1], - mSeqCounters[2], - mSeqCounters[3], - mTotalSeqs, - mFreqChar, - mTotalChar); + std::stringstream ss; + ss << std::fixed << std::setprecision(3) << GetConfidence() + << " [" << GetCharSetName() << "] [" + << mSeqCounters[0] << " " + << mSeqCounters[1] << " " + << mSeqCounters[2] << " " + << mSeqCounters[3] << " | " + << mTotalSeqs << "] [" + << mFreqChar << " / " + << mTotalChar << "]"; + return ss.str(); } } @