Commit cef2cf28 authored by StevenPuttemans's avatar StevenPuttemans

fixing locale settings - making it universal

parent 361eb633
...@@ -464,6 +464,7 @@ static int icvInitSystem(int* c, char** v) ...@@ -464,6 +464,7 @@ static int icvInitSystem(int* c, char** v)
if (!QApplication::instance()) if (!QApplication::instance())
{ {
new QApplication(*c, v); new QApplication(*c, v);
setlocale(LC_NUMERIC,"C");
qDebug() << "init done"; qDebug() << "init done";
......
...@@ -146,6 +146,7 @@ CV_IMPL int cvInitSystem( int argc, char** argv ) ...@@ -146,6 +146,7 @@ CV_IMPL int cvInitSystem( int argc, char** argv )
} }
wasInitialized = 1; wasInitialized = 1;
} }
setlocale(LC_NUMERIC,"C");
return 0; return 0;
} }
......
...@@ -156,6 +156,8 @@ CV_IMPL int cvInitSystem( int , char** ) ...@@ -156,6 +156,8 @@ CV_IMPL int cvInitSystem( int , char** )
//[application finishLaunching]; //[application finishLaunching];
//atexit(icvCocoaCleanup); //atexit(icvCocoaCleanup);
setlocale(LC_NUMERIC,"C");
return 0; return 0;
} }
......
...@@ -260,6 +260,8 @@ CV_IMPL int cvInitSystem( int, char** ) ...@@ -260,6 +260,8 @@ CV_IMPL int cvInitSystem( int, char** )
wasInitialized = 1; wasInitialized = 1;
} }
setlocale(LC_NUMERIC,"C");
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment