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.
This commit is contained in:
Jim Meyering
2000-04-09 07:33:25 +00:00
parent 0145667581
commit e6701bae6d
+3
View 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;