mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12: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 <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…
Add table
Add a link
Reference in a new issue