diff options
Diffstat (limited to 'lib/libc/stdtime/timelocal.c')
| -rw-r--r-- | lib/libc/stdtime/timelocal.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/stdtime/timelocal.c b/lib/libc/stdtime/timelocal.c index 6af316710de1..81e579a95d37 100644 --- a/lib/libc/stdtime/timelocal.c +++ b/lib/libc/stdtime/timelocal.c @@ -82,9 +82,8 @@ static const struct lc_time_T _C_time_locale = { /* ** c_fmt (ctime-compatible) - ** Not used, just compatibility placeholder. */ - NULL, + "%a %Ef %T %Y", /* am */ "AM", @@ -246,6 +245,8 @@ set_from_buf(const char *p, int num_lines) for (ap = (const char **) &_time_localebuf, i = 0; i < num_lines; ++ap, ++i) *ap = p += strlen(p) + 1; + /* XXX: always overwrite for ctime format parsing compatibility */ + _time_localebuf.c_fmt = _C_time_locale.c_fmt; if (num_lines >= LCTIME_SIZE_2) return; for (i = 0; i < 12; i++) |
