Request UTF-8 code page at startup on windows

This makes the *A Win32 API variants work correctly with UTF-8 parameters, which is nice because standard C/C++ facilities use those (because microsoft's libc is a steaming pile of microsoft code). OF COURSE this only works on win10 1903 and above. See https://learn.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page
This commit is contained in:
Tamás Bálint Misius
2023-05-13 14:51:41 +02:00
parent 7ef02a6c0b
commit 18084d5aa0
4 changed files with 16 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ if host_platform == 'windows'
],
depend_files: [
'resource.h',
'winutf8.xml',
],
)
elif host_platform == 'darwin'