Core/Locales: Set active code page and locale used by c string functions to utf8

Closes #29455

(cherry picked from commit b299902881)
This commit is contained in:
Shauren
2023-11-24 20:01:17 +01:00
parent 45a5b6a9f0
commit 7be101ac67
11 changed files with 117 additions and 5 deletions

View File

@@ -33,6 +33,7 @@
#include "IoContext.h"
#include "IPLocation.h"
#include "GitRevision.h"
#include "Locales.h"
#include "MySQLThreading.h"
#include "OpenSSLCrypto.h"
#include "ProcessPriority.h"
@@ -85,6 +86,8 @@ int main(int argc, char** argv)
Trinity::Impl::CurrentServerProcessHolder::_type = SERVER_PROCESS_AUTHSERVER;
signal(SIGABRT, &Trinity::AbortHandler);
Trinity::Locale::Init();
auto configFile = fs::absolute(_TRINITY_REALM_CONFIG);
std::string configService;
auto vm = GetConsoleArguments(argc, argv, configFile, configService);