diff --git a/rpcs3/headless_application.cpp b/rpcs3/headless_application.cpp index 40a4ca3db5..cc88fe3b1e 100644 --- a/rpcs3/headless_application.cpp +++ b/rpcs3/headless_application.cpp @@ -4,6 +4,8 @@ #include "Emu/RSX/GSRender.h" +#include + // 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() diff --git a/rpcs3/rpcs3qt/gui_application.cpp b/rpcs3/rpcs3qt/gui_application.cpp index a14aab2c2f..95c6b52ff2 100644 --- a/rpcs3/rpcs3qt/gui_application.cpp +++ b/rpcs3/rpcs3qt/gui_application.cpp @@ -15,6 +15,8 @@ #include +#include + 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();