mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
main: set locale to C before doing anything else
This commit is contained in:
parent
e46dba43ad
commit
7cb3d305d4
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
#include <clocale>
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QCommandLineParser>
|
#include <QCommandLineParser>
|
||||||
@ -72,6 +73,13 @@ DYNAMIC_IMPORT("ntdll.dll", NtSetTimerResolution, NTSTATUS(ULONG DesiredResoluti
|
|||||||
|
|
||||||
#include "util/sysinfo.hpp"
|
#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(); }
|
inline std::string sstr(const QString& _in) { return _in.toStdString(); }
|
||||||
|
|
||||||
static semaphore<> s_qt_init;
|
static semaphore<> s_qt_init;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user