fixing locale settings - making it universal
authorStevenPuttemans <steven.puttemans@kuleuven.be>
Fri, 6 Mar 2015 11:59:26 +0000 (12:59 +0100)
committerStevenPuttemans <steven.puttemans@kuleuven.be>
Fri, 6 Mar 2015 12:13:53 +0000 (13:13 +0100)
modules/highgui/src/window_QT.cpp
modules/highgui/src/window_carbon.cpp
modules/highgui/src/window_cocoa.mm
modules/highgui/src/window_w32.cpp

index 7f37e14..c89918e 100644 (file)
@@ -464,6 +464,7 @@ static int icvInitSystem(int* c, char** v)
     if (!QApplication::instance())
     {
         new QApplication(*c, v);
+        setlocale(LC_NUMERIC,"C");
 
         qDebug() << "init done";
 
index 93d9e4f..bbc6007 100644 (file)
@@ -146,6 +146,7 @@ CV_IMPL int cvInitSystem( int argc, char** argv )
         }
         wasInitialized = 1;
     }
+    setlocale(LC_NUMERIC,"C");
 
     return 0;
 }
index 414ed64..b9efe35 100644 (file)
@@ -156,6 +156,8 @@ CV_IMPL int cvInitSystem( int , char** )
     //[application finishLaunching];
     //atexit(icvCocoaCleanup);
 
+    setlocale(LC_NUMERIC,"C");
+
     return 0;
 }
 
index 0878bff..29b1e41 100644 (file)
@@ -260,6 +260,8 @@ CV_IMPL int cvInitSystem( int, char** )
         wasInitialized = 1;
     }
 
+    setlocale(LC_NUMERIC,"C");
+
     return 0;
 }