提交 2828a130 编写于 作者: R Rich Felker

fix strftime regression in %e format

%e pads with spaces instead of zeros.
上级 190bbb99
......@@ -80,8 +80,8 @@ const char *__strftime_fmt_1(char (*s)[100], size_t *l, int f, const struct tm *
fmt = "%m/%d/%y";
goto recu_strftime;
case 'e':
val = tm->tm_mday;
goto number;
*l = snprintf(*s, sizeof *s, "%2d", tm->tm_mday);
return *s;
case 'F':
fmt = "%Y-%m-%d";
goto recu_strftime;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册