2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

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

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() {