From 7cb3d305d4032c5dd25eb141100a5422f7613c4e Mon Sep 17 00:00:00 2001 From: Megamouse Date: Fri, 24 Feb 2023 15:53:30 +0100 Subject: [PATCH] main: set locale to C before doing anything else --- rpcs3/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rpcs3/main.cpp b/rpcs3/main.cpp index 5ca92aac12..9b11905068 100644 --- a/rpcs3/main.cpp +++ b/rpcs3/main.cpp @@ -3,6 +3,7 @@ #include #include +#include #include #include @@ -72,6 +73,13 @@ DYNAMIC_IMPORT("ntdll.dll", NtSetTimerResolution, NTSTATUS(ULONG DesiredResoluti #include "util/sysinfo.hpp" +// Let's initialize the locale first +static const bool s_init_locale = []() +{ + std::setlocale(LC_ALL, "C"); + return true; +}(); + inline std::string sstr(const QString& _in) { return _in.toStdString(); } static semaphore<> s_qt_init;