diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-02 02:53:12 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-02 02:53:12 +0300 |
commit | 6dc6ebbf44f01f31b683ddde36f0ba694b98bbdd (patch) | |
tree | d37cdd5a65b6cd7b5ec9b83e15c5d97365768f17 /coreutils/date.c | |
parent | f782f52c8cab1457d9e912b8bf2afdde6d170816 (diff) |
awk: undo locale setting for numbers - or else parsing
can act quite mysteriously
date: add if(ENABLE_LOCALE_SUPPORT)
Diffstat (limited to 'coreutils/date.c')
-rw-r--r-- | coreutils/date.c | 3 |
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; |