From bb231889fdd2ee0f519bdb1c756b61ceefd5584b Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Thu, 6 Aug 2020 19:52:17 +1000 Subject: [PATCH] win32: request the UTF-8 code page for Windows APIs This sets the activeCodePage property in the manifest, which forces the ANSI code page to be UTF-8 in Windows 10 1903 and up. It shouldn't make a difference for mpv itself, since mpv already uses the wide-char APIs for most functions, however some of mpv's dependencies, such as Lua, rely on the ANSI codepage. Hence this change enables support for Unicode file names in Lua's I/O library. Thanks @avih for finding this property. See: https://docs.microsoft.com/en-us/windows/uwp/design/globalizing/use-utf8-code-page --- osdep/mpv.exe.manifest | 1 + 1 file changed, 1 insertion(+) diff --git a/osdep/mpv.exe.manifest b/osdep/mpv.exe.manifest index accc2eddc8..32dd80b3f8 100644 --- a/osdep/mpv.exe.manifest +++ b/osdep/mpv.exe.manifest @@ -11,6 +11,7 @@ True/PM PerMonitorV2,PerMonitor + UTF-8