mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 13:47:32 +08:00
Merge pull request #3780 from StevenPuttemans:fix_locale_master
This commit is contained in:
commit
04f16965d5
@ -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";
|
||||
|
||||
|
@ -146,6 +146,7 @@ CV_IMPL int cvInitSystem( int argc, char** argv )
|
||||
}
|
||||
wasInitialized = 1;
|
||||
}
|
||||
setlocale(LC_NUMERIC,"C");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -156,6 +156,8 @@ CV_IMPL int cvInitSystem( int , char** )
|
||||
//[application finishLaunching];
|
||||
//atexit(icvCocoaCleanup);
|
||||
|
||||
setlocale(LC_NUMERIC,"C");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -260,6 +260,8 @@ CV_IMPL int cvInitSystem( int, char** )
|
||||
wasInitialized = 1;
|
||||
}
|
||||
|
||||
setlocale(LC_NUMERIC,"C");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user