mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-08 13:08:29 +02:00
fix: utf8 pathname encoding
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
8acc52b1ab
commit
561187b18a
2 changed files with 16 additions and 3 deletions
|
|
@ -37,6 +37,13 @@
|
|||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
// try to set the utf-8 locale for the libarchive
|
||||
for (auto name : { ".UTF-8", "en_US.UTF-8", "C.UTF-8" }) {
|
||||
if (std::setlocale(LC_CTYPE, name)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// initialize Qt
|
||||
Application app(argc, argv);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue