summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenis Vlasenko2006-11-21 00:09:37 +0000
committerDenis Vlasenko2006-11-21 00:09:37 +0000
commitfcdb00f7359488d197ac3361dfbc49ccdead8b87 (patch)
treef9dae67bb1b22c7249c24e20b7f4ae82ec824d52 /shell
parent6c85ddc8509e4b72ca5b4e47ca5085101a02f07c (diff)
downloadbusybox-fcdb00f7359488d197ac3361dfbc49ccdead8b87.zip
busybox-fcdb00f7359488d197ac3361dfbc49ccdead8b87.tar.gz
httpd: LC_TIME locale _must_ be POSIX to httpd! We speak over the net!
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c1
-rw-r--r--shell/lash.c5
2 files changed, 1 insertions, 5 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 3c76397..4fef0f2 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -1495,7 +1495,6 @@ static void getoptsreset(const char *);
#endif
#ifdef CONFIG_LOCALE_SUPPORT
-#include <locale.h>
static void change_lc_all(const char *value);
static void change_lc_ctype(const char *value);
#endif
diff --git a/shell/lash.c b/shell/lash.c
index 4067bc6..472cbdd 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -25,10 +25,6 @@
#include <getopt.h>
#include "cmdedit.h"
-#ifdef CONFIG_LOCALE_SUPPORT
-#include <locale.h>
-#endif
-
#include <glob.h>
#define expand_t glob_t
@@ -377,6 +373,7 @@ static int builtin_export(struct child_prog *child)
#endif
#ifdef CONFIG_LOCALE_SUPPORT
+ // TODO: why getenv? "" would be just as good...
if(strncmp(v, "LC_ALL=", 7)==0)
setlocale(LC_ALL, getenv("LC_ALL"));
if(strncmp(v, "LC_CTYPE=", 9)==0)