From: Jim Meyering Date: Sun, 9 Apr 2000 07:33:25 +0000 (+0000) Subject: Use the "C" locale when using --rfc-822 (-R), as X-Git-Tag: FILEUTILS-4_0r~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e6701bae6d02a9dce533cedc6e5835d1005cf5ba;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/src/date.c b/src/date.c index 555bf7eeb0..4f779ecf3a 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;