X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fstrftime.c;h=1adcaa4ba469b63a8232dfc52e095e59c14b50be;hb=0e3c27e0d9f27e890e6a3a0d768c7408dedda702;hp=cf76c1f5e38e147ecb0f42264a1813cacfae7594;hpb=0fb89595c8f7c1b0f426a1c79250b4297edadaa2;p=gnulib.git diff --git a/lib/strftime.c b/lib/strftime.c index cf76c1f5e..1adcaa4ba 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: