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:
parent
2e5fbccf83
commit
02a8e76d59
@ -49,6 +49,14 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
#ifdef GNUSTEP
|
#ifdef GNUSTEP
|
||||||
int i;
|
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
|
// Need this because we're not using the default run loop's autorelease
|
||||||
// pool.
|
// pool.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user