diff options
author | Jim Meyering <jim@meyering.net> | 2000-04-09 07:33:25 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-04-09 07:33:25 +0000 |
commit | e6701bae6d02a9dce533cedc6e5835d1005cf5ba (patch) | |
tree | 8e0a6fc0975e9ea12d8c6dc9d1b9a19f271fc614 | |
parent | 0145667581d304fdc8c67ad0a5ccf1432c499ee7 (diff) | |
download | coreutils-e6701bae6d02a9dce533cedc6e5835d1005cf5ba.tar.xz |
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.
-rw-r--r-- | src/date.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/date.c b/src/date.c index 555bf7eeb..4f779ecf3 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; |