Force "%c" to be ctime-compatible

Submitted by:	ru
This commit is contained in:
Andrey A. Chernov 2000-10-26 16:07:04 +00:00
parent 21079021da
commit c877745700

View File

@ -143,7 +143,8 @@ _strptime(const char *buf, const char *fmt, struct tm *tm)
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;