From e6701bae6d02a9dce533cedc6e5835d1005cf5ba Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 9 Apr 2000 07:33:25 +0000 Subject: [PATCH] Use the "C" locale when using --rfc-822 (-R), as required by rfc822. Before, in the de_DE locale, date would print the German weekday and month abbreviations. --- src/date.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/date.c b/src/date.c index 555bf7e..4f779ec 100644 --- a/src/date.c +++ b/src/date.c @@ -517,6 +517,9 @@ show_date (const char *format, time_t when) return; } + if (rfc_format) + setlocale (LC_ALL, "C"); + do { out_length += 200; -- 2.7.4