From 0112e5e299d09da1f09b25c2fcd09e5d3b0f8bdd Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 12 May 2003 08:20:29 +0000 Subject: [PATCH] (my_strftime): Let the `-' (no-pad) flag affect the space-padded-by-default conversion specifiers, %e, %k, %l. --- lib/strftime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/strftime.c b/lib/strftime.c index cf76c1f5e3..1adcaa4ba4 100644 --- a/lib/strftime.c +++ b/lib/strftime.c @@ -987,8 +987,8 @@ my_strftime (s, maxsize, format, tp extra_args LOCALE_PARAM) jump to one of these two labels. */ do_number_spacepad: - /* Force `_' flag unless overwritten by `0' flag. */ - if (pad != L_('0')) + /* Force `_' flag unless overridden by `0' or `-' flag. */ + if (pad != L_('0') && pad != L_('-')) pad = L_('_'); do_number: -- 2.30.2