aboutsummaryrefslogtreecommitdiff
path: root/src/tools/map_extractor
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-11-24 20:01:17 +0100
committerShauren <shauren.trinity@gmail.com>2023-12-02 15:57:09 +0100
commit7be101ac672c904a65e8ac41e04bbddfd19266a7 (patch)
tree9b0d98966a8e4dbade441764d81c53b363184ad4 /src/tools/map_extractor
parent45a5b6a9f04d2f605e7141b8da6e9cfa24711e07 (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/tools/map_extractor')
-rw-r--r--src/tools/map_extractor/System.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/map_extractor/System.cpp b/src/tools/map_extractor/System.cpp
index b92f0d1668a..d5210560b10 100644
--- a/src/tools/map_extractor/System.cpp
+++ b/src/tools/map_extractor/System.cpp
@@ -17,6 +17,7 @@
#include "dbcfile.h"
#include "Banner.h"
+#include "Locales.h"
#include "mpq_libmpq04.h"
#include "StringFormat.h"
@@ -1120,6 +1121,8 @@ inline void CloseMPQFiles()
int main(int argc, char * arg[])
{
+ Trinity::Locale::Init();
+
Trinity::Banner::Show("Map & DBC Extractor", [](char const* text) { printf("%s\n", text); }, nullptr);
HandleArgs(argc, arg);