]> git.saurik.com Git - apt.git/blobdiff - apt-private/acqprogress.cc
prevent C++ locale number formatting in text APIs (try 2)
[apt.git] / apt-private / acqprogress.cc
index a33d51c7178d60d631586c03f768d2c46ed74dcf..4e6042c3d25455c9e1378f70cf8524eac02b36cb 100644 (file)
@@ -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)