httpd: LC_TIME locale _must_ be POSIX to httpd! We speak over the net!
This commit is contained in:
@@ -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");
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user