mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
main: set locale to C before doing anything else
This commit is contained in:
parent
e46dba43ad
commit
7cb3d305d4
1 changed files with 8 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include <iostream>
|
||||
#include <chrono>
|
||||
#include <clocale>
|
||||
|
||||
#include <QApplication>
|
||||
#include <QCommandLineParser>
|
||||
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue