aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--e-util/e-util.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c
index e542574d58..02092041f0 100644
--- a/e-util/e-util.c
+++ b/e-util/e-util.c
@@ -627,9 +627,11 @@ e_format_number (gint number)
int divider;
char *value;
char *value_iterator;
+ int initial_grouping;
locality = localeconv();
grouping = locality->grouping;
+ initial_grouping = *grouping;
while (number) {
char *group;
switch (*grouping) {
@@ -638,7 +640,11 @@ e_format_number (gint number)
grouping++;
case 0:
divider = epow10(last_count);
- group = g_strdup_printf("%d", number % divider);
+ if(!list && (number/divider) > 0) {
+ group = g_strdup_printf("%0*d", initial_grouping, number % divider);
+ } else {
+ group = g_strdup_printf("%d", number % divider);
+ }
number /= divider;
break;
case CHAR_MAX:
git.cgi/freebsd-ports-gnome/log/net-mgmt/pixilate?h=gnome-3.24&id=d2d1a0df88c03bfdc0867c63dcc19b4f12aa9952&showmsg=1'>Expand)AuthorAgeFilesLines * Conversion from (now defunct) autoconf-2.61 to autoconf-2.62ade2008-08-201-1/+1 * Switch autoconf dependencies from 2.53 or 2.59 to 2.61.linimon2007-09-301-2/+2