diff options
author | Shauren <shauren.trinity@gmail.com> | 2023-11-24 20:01:17 +0100 |
---|---|---|
committer | funjoker <funjoker109@gmail.com> | 2023-12-01 23:28:35 +0100 |
commit | 543d7d5001d7070415bdd649faf9691bf014970e (patch) | |
tree | 0fa1fbb87ff35495fbc088f1f51965e7bc26638f /src/server/worldserver/Main.cpp | |
parent | fa7b01bec70d428fd6e1687876f3c82ed054f349 (diff) |
Core/Locales: Set active code page and locale used by c string functions to utf8
Closes #29455
(cherry picked from commit b299902881cb6525b5a6cc08c5721c0c1c7401ab)
Diffstat (limited to 'src/server/worldserver/Main.cpp')
-rw-r--r-- | src/server/worldserver/Main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/worldserver/Main.cpp b/src/server/worldserver/Main.cpp index 3c3184f4ddc..eb5aba0e1aa 100644 --- a/src/server/worldserver/Main.cpp +++ b/src/server/worldserver/Main.cpp @@ -35,6 +35,7 @@ #include "InstanceLockMgr.h" #include "IoContext.h" #include "IpNetwork.h" +#include "Locales.h" #include "MapManager.h" #include "Metric.h" #include "MySQLThreading.h" @@ -130,6 +131,8 @@ extern int main(int argc, char** argv) { signal(SIGABRT, &Trinity::AbortHandler); + Trinity::Locale::Init(); + auto configFile = fs::absolute(_TRINITY_CORE_CONFIG); auto configDir = fs::absolute(_TRINITY_CORE_CONFIG_DIR); std::string winServiceAction; |