diff --git a/js/src/configure.in b/js/src/configure.in index 03610e2a9868..52bbc3cffa7e 100644 --- a/js/src/configure.in +++ b/js/src/configure.in @@ -5044,6 +5044,12 @@ for lib_arg in $NSPR_LIBS $TK_LIBS; do done AC_SUBST(LIBS_PATH) +dnl ======================================================== +dnl JavaScript shell +dnl ======================================================== + +AC_HAVE_FUNCS(setlocale) + dnl ======================================================== dnl Use cygwin wrapper for win32 builds, except MSYS/MinGW dnl ======================================================== diff --git a/js/src/js.cpp b/js/src/js.cpp index 88c016d6c1fc..5a0880496fd8 100644 --- a/js/src/js.cpp +++ b/js/src/js.cpp @@ -3973,7 +3973,7 @@ main(int argc, char **argv, char **envp) #endif /* JSDEBUGGER */ CheckHelpMessages(); -#ifndef WINCE +#ifdef HAVE_SETLOCALE setlocale(LC_ALL, ""); #endif gStackBase = (jsuword)&stackDummy;