httpd: LC_TIME locale _must_ be POSIX to httpd! We speak over the net!

This commit is contained in:
Denis Vlasenko
2006-11-21 00:09:37 +00:00
parent 6c85ddc850
commit fcdb00f735
7 changed files with 19 additions and 17 deletions

View File

@@ -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

View File

@@ -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)