Use the "C" locale when using --rfc-822 (-R), as
authorJim Meyering <jim@meyering.net>
Sun, 9 Apr 2000 07:33:25 +0000 (07:33 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 9 Apr 2000 07:33:25 +0000 (07:33 +0000)
required by rfc822.  Before, in the de_DE locale, date would
print the German weekday and month abbreviations.

src/date.c

index 555bf7e..4f779ec 100644 (file)
@@ -517,6 +517,9 @@ show_date (const char *format, time_t when)
       return;
     }
 
+  if (rfc_format)
+    setlocale (LC_ALL, "C");
+
   do
     {
       out_length += 200;