/* -----------------------------------------------------------------------------
- * $Id: RtsStartup.c,v 1.72 2003/02/22 04:51:53 sof Exp $
+ * $Id: RtsStartup.c,v 1.74 2003/08/19 16:32:23 simonmar Exp $
*
* (c) The GHC Team, 1998-2002
*
#include <stdlib.h>
+#ifdef HAVE_LOCALE_H
+#include <locale.h>
+#endif
+
// Flag Structure
struct RTS_FLAGS RtsFlags;
/* Initialise the stats department */
initStats();
-#if !defined(mingw32_TARGET_OS) && !defined(PAR)
+#if defined(RTS_USER_SIGNALS)
/* Initialise the user signal handler set */
initUserSignals();
/* Set up handler to run on SIGINT, etc. */
}
#endif
+#ifdef HAVE_LOCALE_H
+ setlocale(LC_ALL,"");
+#endif
+
/* Record initialization times */
stat_endInit();
}