Forces numeric locale to default
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
#include "Emu/RSX/GSRender.h"
|
#include "Emu/RSX/GSRender.h"
|
||||||
|
|
||||||
|
#include <clocale>
|
||||||
|
|
||||||
// For now, a trivial constructor/destructor. May add command line usage later.
|
// For now, a trivial constructor/destructor. May add command line usage later.
|
||||||
headless_application::headless_application(int& argc, char** argv) : QCoreApplication(argc, argv)
|
headless_application::headless_application(int& argc, char** argv) : QCoreApplication(argc, argv)
|
||||||
{
|
{
|
||||||
@@ -19,6 +21,9 @@ void headless_application::Init()
|
|||||||
|
|
||||||
// Create connects to propagate events throughout Gui.
|
// Create connects to propagate events throughout Gui.
|
||||||
InitializeConnects();
|
InitializeConnects();
|
||||||
|
|
||||||
|
// As per QT recommendations to avoid conflicts for POSIX functions
|
||||||
|
std::setlocale(LC_NUMERIC, "C");
|
||||||
}
|
}
|
||||||
|
|
||||||
void headless_application::InitializeConnects()
|
void headless_application::InitializeConnects()
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
|
|
||||||
#include <QScreen>
|
#include <QScreen>
|
||||||
|
|
||||||
|
#include <clocale>
|
||||||
|
|
||||||
gui_application::gui_application(int& argc, char** argv) : QApplication(argc, argv)
|
gui_application::gui_application(int& argc, char** argv) : QApplication(argc, argv)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -48,6 +50,9 @@ void gui_application::Init()
|
|||||||
// Create connects to propagate events throughout Gui.
|
// Create connects to propagate events throughout Gui.
|
||||||
InitializeConnects();
|
InitializeConnects();
|
||||||
|
|
||||||
|
// As per QT recommendations to avoid conflicts for POSIX functions
|
||||||
|
std::setlocale(LC_NUMERIC, "C");
|
||||||
|
|
||||||
if (m_main_window)
|
if (m_main_window)
|
||||||
{
|
{
|
||||||
m_main_window->Init();
|
m_main_window->Init();
|
||||||
|
|||||||
Reference in New Issue
Block a user