From: simonmar Date: Tue, 19 Aug 2003 16:32:23 +0000 (+0000) Subject: [project @ 2003-08-19 16:32:23 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~546 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=f3c159a95b436082c12b20063c13ab8ffe3da20a [project @ 2003-08-19 16:32:23 by simonmar] setlocale(LC_ALL,""), to enable the locale support in libc. --- diff --git a/ghc/rts/RtsStartup.c b/ghc/rts/RtsStartup.c index 1c6ab40..099f891 100644 --- a/ghc/rts/RtsStartup.c +++ b/ghc/rts/RtsStartup.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: RtsStartup.c,v 1.73 2003/04/01 15:05:15 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; @@ -167,6 +171,10 @@ hs_init(int *argc, char **argv[]) } #endif +#ifdef HAVE_LOCALE_H + setlocale(LC_ALL,""); +#endif + /* Record initialization times */ stat_endInit(); }