Forces numeric locale to default

This commit is contained in:
RipleyTom 2019-09-20 00:14:09 +02:00 committed by Megamouse
parent aa7eb1536a
commit 7818d0767b
2 changed files with 10 additions and 0 deletions

View File

@ -4,6 +4,8 @@
#include "Emu/RSX/GSRender.h"
#include <clocale>
// For now, a trivial constructor/destructor. May add command line usage later.
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.
InitializeConnects();
// As per QT recommendations to avoid conflicts for POSIX functions
std::setlocale(LC_NUMERIC, "C");
}
void headless_application::InitializeConnects()

View File

@ -15,6 +15,8 @@
#include <QScreen>
#include <clocale>
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.
InitializeConnects();
// As per QT recommendations to avoid conflicts for POSIX functions
std::setlocale(LC_NUMERIC, "C");
if (m_main_window)
{
m_main_window->Init();