summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-05-12 08:19:05 +0000
committerJim Meyering <jim@meyering.net>2003-05-12 08:19:05 +0000
commita12ea0b2556f2d36625a1de7d918a5d199d2c704 (patch)
treede78dca121b67ed5198ef25a64f52a08bb1b2352
parentab2a67a33187fd638c707c10fb46bbdfca6754df (diff)
downloadcoreutils-a12ea0b2556f2d36625a1de7d918a5d199d2c704.tar.xz
(my_strftime): Let the `-' (no-pad) flag affect
the space-padded-by-default conversion specifiers, %e, %k, %l.
-rw-r--r--lib/strftime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/strftime.c b/lib/strftime.c
index 3600793ef..52e84e322 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: