Skip to content

Commit

Permalink
Set codepage for winapi to utf-8 in the manifest file
Browse files Browse the repository at this point in the history
This actually works on windows 10 1903 and later though
  • Loading branch information
loonycyborg authored and Pentarctagon committed Jun 11, 2022
1 parent c69d2a9 commit 56c2b1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packaging/windows/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ for bin in binaries:
res = []
env[bin + "_res"] = res

Depends(env["wesnoth_res"], File("wesnoth.exe.manifest"))

def WindowsInstaller(env, files):
files = [Entry(file) for file in Flatten(files)]
env["NSIS_INSTALL_FILES"] = ""
Expand Down
1 change: 1 addition & 0 deletions packaging/windows/wesnoth.exe.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<asmv3:windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
<activeCodePage xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">UTF-8</activeCodePage>
</asmv3:windowsSettings>
</asmv3:application>
</assembly>

0 comments on commit 56c2b1e

Please sign in to comment.