From: Jim Meyering Date: Mon, 12 May 2003 08:19:05 +0000 (+0000) Subject: (my_strftime): Let the `-' (no-pad) flag affect X-Git-Tag: v5.0.1~524 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a12ea0b2556f2d36625a1de7d918a5d199d2c704;p=thirdparty%2Fcoreutils.git (my_strftime): Let the `-' (no-pad) flag affect the space-padded-by-default conversion specifiers, %e, %k, %l. --- diff --git a/lib/strftime.c b/lib/strftime.c index 3600793ef5..52e84e322a 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: