]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-item.cc
prevent C++ locale number formatting in text APIs (try 2)
[apt.git] / apt-pkg / acquire-item.cc
index fd02b6bba8b289d7ff42432a08e8d300728f1a67..d8921be072ad6d85d38f486804297e181ede5351 100644 (file)
@@ -2596,7 +2596,7 @@ std::string pkgAcqIndexMergeDiffs::Custom600Headers() const               /*{{{*/
    {
       HashStringList const ExpectedHashes = (*I)->patch.patch_hashes;
       for (HashStringList::const_iterator hs = ExpectedHashes.begin(); hs != ExpectedHashes.end(); ++hs)
-        patchhashes <<  "\nPatch-" << seen_patches << "-" << hs->HashType() << "-Hash: " << hs->HashValue();
+        patchhashes <<  "\nPatch-" << std::to_string(seen_patches) << "-" << hs->HashType() << "-Hash: " << hs->HashValue();
       ++seen_patches;
    }
    patchhashes << pkgAcqBaseIndex::Custom600Headers();