Bug 462914: Test for setlocale at configure time in js/src r=crowder

This commit is contained in:
Jim Blandy 2008-12-19 10:31:43 -08:00
parent b3a9d80456
commit 41e717de51
2 changed files with 7 additions and 1 deletions

View File

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

View File

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