From 10735b8be6ed9ee0a715cb326fac858ea7fc4413 Mon Sep 17 00:00:00 2001 From: kichikuou Date: Thu, 9 Jan 2025 08:37:39 +0900 Subject: [PATCH] Windows: Add application manifest to set ActiveCodePage to UTF-8 This will set the process code page to UTF-8 on Windows 10 version 1903 or above, allowing Japanese file names to be handled correctly even if the system locale is not Japanese. --- src/win/resources.rc | 1 + src/win/xsystem35.exe.manifest | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 src/win/xsystem35.exe.manifest diff --git a/src/win/resources.rc b/src/win/resources.rc index b2b59bd..7c09928 100644 --- a/src/win/resources.rc +++ b/src/win/resources.rc @@ -2,6 +2,7 @@ #include #include "resources.h" +CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "xsystem35.exe.manifest" 100 ICON DISCARDABLE "xsystem35.ico" // Note for game translators: diff --git a/src/win/xsystem35.exe.manifest b/src/win/xsystem35.exe.manifest new file mode 100644 index 0000000..c3edbe1 --- /dev/null +++ b/src/win/xsystem35.exe.manifest @@ -0,0 +1,8 @@ + + + + + UTF-8 + + +