summaryrefslogtreecommitdiff
path: root/apt-private
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-07-30 09:57:50 +0200
committerJulian Andres Klode <jak@debian.org>2016-11-14 15:10:03 +0100
commit5afa62c02b03161aff2a983647a5894b309ddd6f (patch)
treeeb5c5fb2d25d9e1ea2214776c3b45945322d146b /apt-private
parentc6dcd6d5c03abdcaa075bb4734b78a6bb9de9b94 (diff)
prevent C++ locale number formatting in text APIs (try 2)
Followup of b58e2c7c56b1416a343e81f9f80cb1f02c128e25. Still a regression of sorts of 8b79c94af7f7cf2e5e5342294bc6e5a908cacabf. Closes: 832044 (cherry picked from commit 7303e11ff28f920a6277c159aa46f80c007350bb)
Diffstat (limited to 'apt-private')
-rw-r--r--apt-private/acqprogress.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-private/acqprogress.cc b/apt-private/acqprogress.cc
index a33d51c71..4e6042c3d 100644
--- a/apt-private/acqprogress.cc
+++ b/apt-private/acqprogress.cc
@@ -194,7 +194,7 @@ bool AcqTextStatus::Pulse(pkgAcquire *Owner)
// Add in the short description
S << " [";
if (I->CurrentItem->Owner->ID != 0)
- S << I->CurrentItem->Owner->ID << " ";
+ S << std::to_string(I->CurrentItem->Owner->ID) << " ";
S << I->CurrentItem->ShortDesc;
// Show the short mode string
@@ -204,7 +204,7 @@ bool AcqTextStatus::Pulse(pkgAcquire *Owner)
enum {Long = 0,Medium,Short} Mode = Medium;
// Add the current progress
if (Mode == Long)
- S << " " << I->CurrentSize;
+ S << " " << std::to_string(I->CurrentSize);
else
{
if (Mode == Medium || I->TotalSize == 0)