Another attempt to enable UTF-8 charset on Windows

This commit is contained in:
Ilya Fedin 2023-01-18 14:35:03 +04:00 committed by John Preston
parent 95979b1ad9
commit 745b01a407
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <functiondiscoverykeys.h>
#include <intsafe.h>
#include <guiddef.h>
#include <locale.h>
#ifndef DCX_USESTYLE
#define DCX_USESTYLE 0x00010000
@ -367,6 +368,8 @@ void start() {
} // namespace ThirdParty
void start() {
// https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/setlocale-wsetlocale#utf-8-support
setlocale(LC_ALL, ".UTF8");
}
void finish() {