summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-04-09 07:33:25 +0000
committerJim Meyering <jim@meyering.net>2000-04-09 07:33:25 +0000
commite6701bae6d02a9dce533cedc6e5835d1005cf5ba (patch)
tree8e0a6fc0975e9ea12d8c6dc9d1b9a19f271fc614 /src
parent0145667581d304fdc8c67ad0a5ccf1432c499ee7 (diff)
downloadcoreutils-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.
Diffstat (limited to 'src')
-rw-r--r--src/date.c3
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;