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