]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
usr.bin/stat: honour locale for "-t %+"
authorStefan Eßer <se@FreeBSD.org>
Sat, 30 Oct 2021 07:00:34 +0000 (09:00 +0200)
committerStefan Eßer <se@FreeBSD.org>
Sat, 30 Oct 2021 07:00:34 +0000 (09:00 +0200)
commit20f8331aca892ff812510609b3bc4e747b201197
tree870caa9ee248b9bc8f23dc77bb22b7e3f4359cf5
parentdc6dd769de63c4eceb8899205a5d780d9f278fd2
usr.bin/stat: honour locale for "-t %+"

The man page states that "-t %+" prints time information in the same
format as date with no format specifier.

This was not the case, the format used was always that of date for the
POSIX locale.

The fix suggested by the reporter leads to output that matches the
documentation.

Reported by: Jamie Landeg-Jones <jamie@catflap.org>
MFC after: 3 days
usr.bin/stat/stat.c