]> git.saurik.com Git - apt.git/commitdiff
[apt-pkg/contrib/strutl.cc] enable thousand separator according to
authorDavid Kalnischkies <kalnischkies@gmail.com>
Fri, 31 Jul 2009 18:42:06 +0000 (20:42 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Fri, 31 Jul 2009 18:42:06 +0000 (20:42 +0200)
the current locale. Patch from Luca Bruno (Closes: #223712)

apt-pkg/contrib/strutl.cc
debian/changelog

index a991b8988472a7c6c5afe370004b1fe8514e19f6..1683868c8a398c72fb9a0e61d97233d3ac0fa56c 100644 (file)
@@ -304,13 +304,13 @@ string SizeToStr(double Size)
    {
       if (ASize < 100 && I != 0)
       {
-         sprintf(S,"%.1f%c",ASize,Ext[I]);
+         sprintf(S,"%'.1f%c",ASize,Ext[I]);
         break;
       }
       
       if (ASize < 10000)
       {
-         sprintf(S,"%.0f%c",ASize,Ext[I]);
+         sprintf(S,"%'.0f%c",ASize,Ext[I]);
         break;
       }
       ASize /= 1000.0;
index b105faaef0fe3d6dcec32abf45ba90bf2804c6bb..384f8864fcdc06f702aaace43f2df110468f5907 100644 (file)
@@ -10,6 +10,9 @@ apt (0.7.23) unstable; urgency=low
     - add APT::Get::HideAutoRemove=small to display only a short line
       instead of the full package list. (Closes: #537450)
     - ShowBroken() in build-dep (by Mike O'Connor, Closes: #145916)
+  * apt-pkg/contrib/strutl.cc:
+    - enable thousand separator according to the current locale
+      (by Luca Bruno, Closes: #223712)
 
  -- Michael Vogt <michael.vogt@ubuntu.com>  Thu, 30 Jul 2009 15:27:30 +0200