diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-01 23:53:12 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-01 23:53:12 +0000 |
commit | 553ef54a1adaac2a145f61a5e6e5edd474a4e8ac (patch) | |
tree | d37cdd5a65b6cd7b5ec9b83e15c5d97365768f17 /coreutils/date.c | |
parent | f47f1260c1562ffbed0534a00f6946af1dda4e09 (diff) | |
download | busybox-w32-553ef54a1adaac2a145f61a5e6e5edd474a4e8ac.tar.gz busybox-w32-553ef54a1adaac2a145f61a5e6e5edd474a4e8ac.tar.bz2 busybox-w32-553ef54a1adaac2a145f61a5e6e5edd474a4e8ac.zip |
awk: undo locale setting for numbers - or else parsing
can act quite mysteriously
date: add if(ENABLE_LOCALE_SUPPORT)
git-svn-id: svn://busybox.net/trunk/busybox@17126 69ca8d6d-28ef-0310-b511-8ec308f3f277
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: | |||
212 | } | 212 | } |
213 | } else if (opt & DATE_OPT_RFC2822) { | 213 | } else if (opt & DATE_OPT_RFC2822) { |
214 | /* Undo busybox.c for date -R */ | 214 | /* Undo busybox.c for date -R */ |
215 | setlocale(LC_TIME, "C"); | 215 | if (ENABLE_LOCALE_SUPPORT) |
216 | setlocale(LC_TIME, "C"); | ||
216 | strcpy(date_fmt, "%a, %d %b %Y %H:%M:%S "); | 217 | strcpy(date_fmt, "%a, %d %b %Y %H:%M:%S "); |
217 | i = 22; | 218 | i = 22; |
218 | goto format_utc; | 219 | goto format_utc; |