summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdtime
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2000-10-26 16:07:04 +0000
committerache <ache@FreeBSD.org>2000-10-26 16:07:04 +0000
commit5d5fb83f13c398b00ebe7c968495de1fec09dc4d (patch)
treee3988223f2ab010159c866380ce2a54d481a4737 /lib/libc/stdtime
parent93fe69587779050af7fb93885c3afc1d1f1f840d (diff)
downloadFreeBSD-src-5d5fb83f13c398b00ebe7c968495de1fec09dc4d.zip
FreeBSD-src-5d5fb83f13c398b00ebe7c968495de1fec09dc4d.tar.gz
Force "%c" to be ctime-compatible
Submitted by: ru
Diffstat (limited to 'lib/libc/stdtime')
-rw-r--r--lib/libc/stdtime/strptime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdtime/strptime.c b/lib/libc/stdtime/strptime.c
index ef1e09d..ca4dcef 100644
--- a/lib/libc/stdtime/strptime.c
+++ b/lib/libc/stdtime/strptime.c
@@ -143,7 +143,8 @@ label:
break;
case 'c':
- buf = _strptime(buf, Locale->c_fmt, tm);
+ /* NOTE: c_fmt is intentionally ignored */
+ buf = _strptime(buf, "%a %Ef %T %Y", tm);
if (buf == 0)
return 0;
break;
OpenPOWER on IntegriCloud