[project @ 2003-08-20 15:16:43 by sof]
[ghc-hetmet.git] / ghc / rts / RtsStartup.c
index 4971bed..099f891 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $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;
 
@@ -150,7 +154,7 @@ hs_init(int *argc, char **argv[])
     /* 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. */
@@ -167,6 +171,10 @@ hs_init(int *argc, char **argv[])
     }
 #endif
 
+#ifdef HAVE_LOCALE_H
+    setlocale(LC_ALL,"");
+#endif
+
     /* Record initialization times */
     stat_endInit();
 }