git: ls(1): Return previous long format for C/POSIX locales
John Marino
marino at crater.dragonflybsd.org
Fri Nov 20 07:43:27 PST 2015
commit d442878585e8994c8f2ee02005999fbd8f769987
Author: John Marino <draco at marino.st>
Date: Fri Nov 20 16:32:52 2015 +0100
ls(1): Return previous long format for C/POSIX locales
The output of ls -l for POSIX locales is covered by the POSIX standard.
The previous implementation was not compliance with the handling of
future timestamps. The standard requires that future timestamps always
show the year where as previously it would only show the year if the
file's modification time was less than 6 months into the future.
This change detects if C/POSIX LC_TIME is specified, and if so, it
implements the long format as specified by the POSIX standard. The
ISO 8601 format is still used for named locales.
Reported by: swildner
Summary of changes:
bin/ls/ls.1 | 12 ++++++++----
bin/ls/print.c | 38 +++++++++++++++++++++++++++++++++-----
2 files changed, 41 insertions(+), 9 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d442878585e8994c8f2ee02005999fbd8f769987
--
DragonFly BSD source repository
More information about the Commits
mailing list