diff options
author | Denis Vlasenko | 2006-11-21 00:09:37 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-11-21 00:09:37 +0000 |
commit | fcdb00f7359488d197ac3361dfbc49ccdead8b87 (patch) | |
tree | f9dae67bb1b22c7249c24e20b7f4ae82ec824d52 /coreutils | |
parent | 6c85ddc8509e4b72ca5b4e47ca5085101a02f07c (diff) | |
download | busybox-fcdb00f7359488d197ac3361dfbc49ccdead8b87.zip busybox-fcdb00f7359488d197ac3361dfbc49ccdead8b87.tar.gz |
httpd: LC_TIME locale _must_ be POSIX to httpd! We speak over the net!
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/cal.c | 7 | ||||
-rw-r--r-- | coreutils/ls.c | 2 | ||||
-rw-r--r-- | coreutils/wc.c | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/coreutils/cal.c b/coreutils/cal.c index 6f5f0a4..681a88d 100644 --- a/coreutils/cal.c +++ b/coreutils/cal.c @@ -87,9 +87,10 @@ int cal_main(int argc, char **argv) char day_headings[28]; /* 28 for julian, 21 for nonjulian */ char buf[40]; -#ifdef CONFIG_LOCALE_SUPPORT - setlocale(LC_TIME, ""); -#endif +// Done in busybox.c, ok to remove? +//#ifdef CONFIG_LOCALE_SUPPORT +// setlocale(LC_TIME, ""); +//#endif flags = getopt32(argc, argv, "jy"); diff --git a/coreutils/ls.c b/coreutils/ls.c index 8a83d75..909f4d5 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -359,7 +359,7 @@ static int sortcmp(const void *a, const void *b) } if (dif == 0) { - /* sort by name- may be a tie_breaker for time or size cmp */ + /* sort by name - may be a tie_breaker for time or size cmp */ if (ENABLE_LOCALE_SUPPORT) dif = strcoll(d1->name, d2->name); else dif = strcmp(d1->name, d2->name); } diff --git a/coreutils/wc.c b/coreutils/wc.c index 4b76e54..973929e 100644 --- a/coreutils/wc.c +++ b/coreutils/wc.c @@ -44,8 +44,6 @@ #include "busybox.h" #ifdef CONFIG_LOCALE_SUPPORT -#include <locale.h> -#include <ctype.h> #define isspace_given_isprint(c) isspace(c) #else #undef isspace |