fixing setting the locale back to what should be expected
fix should be applyed for every window interface and generation
This commit is contained in:
parent
e7f348e720
commit
34103ef1cb
@ -447,6 +447,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 )
|
|||||||
}
|
}
|
||||||
wasInitialized = 1;
|
wasInitialized = 1;
|
||||||
}
|
}
|
||||||
|
setlocale(LC_NUMERIC,"C");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -250,6 +250,7 @@ CV_IMPL int cvInitSystem( int, char** )
|
|||||||
|
|
||||||
wasInitialized = 1;
|
wasInitialized = 1;
|
||||||
}
|
}
|
||||||
|
setlocale(LC_NUMERIC,"C");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user