mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Another attempt to enable UTF-8 charset on Windows
This commit is contained in:
parent
95979b1ad9
commit
745b01a407
1 changed files with 3 additions and 0 deletions
|
@ -57,6 +57,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include <functiondiscoverykeys.h>
|
#include <functiondiscoverykeys.h>
|
||||||
#include <intsafe.h>
|
#include <intsafe.h>
|
||||||
#include <guiddef.h>
|
#include <guiddef.h>
|
||||||
|
#include <locale.h>
|
||||||
|
|
||||||
#ifndef DCX_USESTYLE
|
#ifndef DCX_USESTYLE
|
||||||
#define DCX_USESTYLE 0x00010000
|
#define DCX_USESTYLE 0x00010000
|
||||||
|
@ -367,6 +368,8 @@ void start() {
|
||||||
} // namespace ThirdParty
|
} // namespace ThirdParty
|
||||||
|
|
||||||
void start() {
|
void start() {
|
||||||
|
// https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/setlocale-wsetlocale#utf-8-support
|
||||||
|
setlocale(LC_ALL, ".UTF8");
|
||||||
}
|
}
|
||||||
|
|
||||||
void finish() {
|
void finish() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue