diff options
author | ache <ache@FreeBSD.org> | 2000-10-26 14:22:41 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2000-10-26 14:22:41 +0000 |
commit | 3e116740c813ab299e53d4f38ad84fa6d9c4944b (patch) | |
tree | 61d5b9ad20db98bad2b04fd7a29b9b6c2be3ee09 /lib/libc/stdtime/strftime.c | |
parent | e4d093e47ac5daf7c3347cc8f63f47c33a48d335 (diff) | |
download | FreeBSD-src-3e116740c813ab299e53d4f38ad84fa6d9c4944b.zip FreeBSD-src-3e116740c813ab299e53d4f38ad84fa6d9c4944b.tar.gz |
Force %c to be "%a %Ef %T %Y" to eliminate problems with bad c_fmt
Submitted by: ru
Diffstat (limited to 'lib/libc/stdtime/strftime.c')
-rw-r--r-- | lib/libc/stdtime/strftime.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdtime/strftime.c b/lib/libc/stdtime/strftime.c index 6404d9c..40e0155 100644 --- a/lib/libc/stdtime/strftime.c +++ b/lib/libc/stdtime/strftime.c @@ -120,7 +120,8 @@ label: "%02d", pt, ptlim); continue; case 'c': - pt = _fmt(Locale->c_fmt, t, pt, ptlim); + /* NOTE: c_fmt is intentionally ignored */ + pt = _fmt("%a %Ef %T %Y", t, pt, ptlim); continue; case 'D': pt = _fmt("%m/%d/%y", t, pt, ptlim); |