Fix for locale issues under Windows.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1738 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Jens Ayton 2008-08-23 14:49:07 +00:00
parent 2e5fbccf83
commit 02a8e76d59

View File

@ -49,6 +49,14 @@ int main(int argc, char *argv[])
{
#ifdef GNUSTEP
int i;
#if OOLITE_WINDOWS
/* Windows amibtiously starts apps with the C library locale set to the
system locale rather than the "C" locale as per spec. Fixing here so
numbers don't behave strangely.
*/
setlocale("C");
#endif
// Need this because we're not using the default run loop's autorelease
// pool.