diff options
| author | Stefan Eßer <se@FreeBSD.org> | 2021-10-30 07:00:34 +0000 |
|---|---|---|
| committer | Stefan Eßer <se@FreeBSD.org> | 2021-10-30 07:00:34 +0000 |
| commit | 20f8331aca892ff812510609b3bc4e747b201197 (patch) | |
| tree | 870caa9ee248b9bc8f23dc77bb22b7e3f4359cf5 /usr.bin/stat | |
| parent | dc6dd769de63c4eceb8899205a5d780d9f278fd2 (diff) | |
Diffstat (limited to 'usr.bin/stat')
| -rw-r--r-- | usr.bin/stat/stat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/stat/stat.c b/usr.bin/stat/stat.c index e504333c3329..9d94399a6333 100644 --- a/usr.bin/stat/stat.c +++ b/usr.bin/stat/stat.c @@ -59,6 +59,7 @@ __FBSDID("$FreeBSD$"); #include <errno.h> #include <grp.h> #include <limits.h> +#include <locale.h> #include <paths.h> #include <pwd.h> #include <stdio.h> @@ -763,6 +764,7 @@ format1(const struct stat *st, ts.tv_sec = 0; tm = localtime(&ts.tv_sec); } + (void)setlocale(LC_TIME, ""); (void)strftime(path, sizeof(path), timefmt, tm); sdata = path; formats = FMTF_DECIMAL | FMTF_OCTAL | FMTF_UNSIGNED | FMTF_HEX | |
