X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FRtsStartup.c;h=099f891f50a9d63242c9810d20191604d5ee6cbf;hb=e98c75873475e94d23246c4e92a41c120d0e167b;hp=4971bedbac82b050979cdc1693603a5e0b2cf07f;hpb=557947d3f93e11285e36423ddb08d859af60ab47;p=ghc-hetmet.git diff --git a/ghc/rts/RtsStartup.c b/ghc/rts/RtsStartup.c index 4971bed..099f891 100644 --- a/ghc/rts/RtsStartup.c +++ b/ghc/rts/RtsStartup.c @@ -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 * @@ -56,6 +56,10 @@ #include +#ifdef HAVE_LOCALE_H +#include +#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(); }