Unbreak ``env LANG=ru_RU.KOI8-R ls -l''.

Time strings are in the current locale.
This commit is contained in:
Marcel Moolenaar 2015-06-17 03:12:08 +00:00
parent f3c1b07a05
commit 284e2b82b2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284489

View File

@ -425,7 +425,7 @@ printtime(const char *field, time_t ftime)
format = d_first ? "%e %b %Y" : "%b %e %Y";
strftime(longstring, sizeof(longstring), format, localtime(&ftime));
snprintf(fmt, sizeof(fmt), "{:%s/%%s} ", field);
snprintf(fmt, sizeof(fmt), "{:%s/%%hs} ", field);
xo_attr("value", "%ld", (long) ftime);
xo_emit(fmt, longstring);
}