Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Set locale to en_US to match game
Browse files Browse the repository at this point in the history
Resolves #288
  • Loading branch information
SamVanheer committed Feb 23, 2024
1 parent 7ca59e5 commit 744d1f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hlam/application/ToolApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QLocale>
#include <QLoggingCategory>
#include <QMessageBox>
#include <QOffscreenSurface>
Expand Down Expand Up @@ -113,6 +114,8 @@ int ToolApplication::Run(int argc, char* argv[])
{
try
{
// Use the same locale as the game for consistent behavior.
QLocale::setDefault(QLocale{ QLocale::Language::English, QLocale::Country::UnitedStates });
// Set the codec to UTF-8 if possible so I/O operations produce proper filenames.
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));

Expand Down

0 comments on commit 744d1f3

Please sign in to comment.