Force %c to be "%a %Ef %T %Y" to eliminate problems with bad c_fmt
Submitted by: ru
This commit is contained in:
parent
d9be478b74
commit
f0b22c7b6a
@ -98,11 +98,11 @@ is replaced by (year / 100) as decimal number; single
|
||||
digits are preceded by a zero.
|
||||
.It Cm %c
|
||||
is replaced by national representation of time and date.
|
||||
The format is similar with produced by
|
||||
The format is similar to that produced by
|
||||
.Xr asctime 3
|
||||
and should be
|
||||
equivalent to "%a %Ef %T %Y" in fields order and sizes, it
|
||||
implies the
|
||||
and is
|
||||
equivalent to "%a %Ef %T %Y".
|
||||
It also implies the
|
||||
"3+1+6+1+8+1+4" format of output.
|
||||
.It Cm \&%D
|
||||
is equivalent to
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user