summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2009-07-31 20:42:06 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2009-07-31 20:42:06 +0200
commitd95cf70db1c0cc7d80d862b826ea67ac70c3e92d (patch)
tree2918bd74686434a8cb3c75c1cd8523550d16a9f9
parent0dae8ac5f8a3092057a80d932ae4e55c1e7d3ca5 (diff)
[apt-pkg/contrib/strutl.cc] enable thousand separator according to
the current locale. Patch from Luca Bruno (Closes: #223712)
-rw-r--r--apt-pkg/contrib/strutl.cc4
-rw-r--r--debian/changelog3
2 files changed, 5 insertions, 2 deletions
diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc
index a991b8988..1683868c8 100644
--- a/apt-pkg/contrib/strutl.cc
+++ b/apt-pkg/contrib/strutl.cc
@@ -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;
diff --git a/debian/changelog b/debian/changelog
index b105faaef..384f8864f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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