aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/date.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/date.c b/coreutils/date.c
index 37ccfd5ba..a6690e8bd 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -212,7 +212,8 @@ format_utc:
}
} else if (opt & DATE_OPT_RFC2822) {
/* Undo busybox.c for date -R */
- setlocale(LC_TIME, "C");
+ if (ENABLE_LOCALE_SUPPORT)
+ setlocale(LC_TIME, "C");
strcpy(date_fmt, "%a, %d %b %Y %H:%M:%S ");
i = 22;
goto format_utc;