diff options
author | ache <ache@FreeBSD.org> | 2001-02-08 20:55:38 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2001-02-08 20:55:38 +0000 |
commit | 90521c24f8205b72da8e75c2eac3a07865741d81 (patch) | |
tree | 27e32fe73028eab77197886994e62e7aee1f3212 /lib/libc/stdtime/timelocal.c | |
parent | d7530cd6666aab2629a125b10daee4aae79fa149 (diff) | |
download | FreeBSD-src-90521c24f8205b72da8e75c2eac3a07865741d81.zip FreeBSD-src-90521c24f8205b72da8e75c2eac3a07865741d81.tar.gz |
Hardcode c_fmt in a different way since used in nl_langinfo now
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 6af3167..81e579a 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++) |