From 02a8e76d59e4171ff2336a6f423cb4582c79c38d Mon Sep 17 00:00:00 2001 From: Jens Ayton Date: Sat, 23 Aug 2008 14:49:07 +0000 Subject: [PATCH] Fix for locale issues under Windows. git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1738 127b21dd-08f5-0310-b4b7-95ae10353056 --- src/SDL/main.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/SDL/main.m b/src/SDL/main.m index c2fa1dc0..f204daba 100644 --- a/src/SDL/main.m +++ b/src/SDL/main.m @@ -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.