From fa1af79e7ca9cd2e0923f21bb6fd7069cf827f12 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 9 Sep 2016 08:44:54 +0100 Subject: document file fetcher being locale dependant --- content/fetchers/file.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'content/fetchers/file.c') diff --git a/content/fetchers/file.c b/content/fetchers/file.c index 04184d27a..6ffa63810 100644 --- a/content/fetchers/file.c +++ b/content/fetchers/file.c @@ -20,6 +20,8 @@ * \file * * file scheme URL handling. Based on the data fetcher by Rob Kendrick + * + * output dates and directory ordering are affected by the current locale */ #include "utils/config.h" @@ -536,7 +538,9 @@ process_dir_ent(struct fetch_file_context *ctx, datebuf[0] = 0; timebuf[0] = 0; } else { - /* Get date in output format */ + /* Get date in output format. a (day of week) and b + * (month) are both affected by the locale + */ if (strftime((char *)&datebuf, sizeof datebuf, "%a %d %b %Y", localtime(&ent_stat.st_mtime)) == 0) { datebuf[0] = '-'; -- cgit v1.2.3