From: Selva Nair Date: Mon, 1 Dec 2025 09:01:03 +0000 (+0100) Subject: Set UTF-8 as the codepage using manifest declaration X-Git-Url: https://git.feebdaed.xyz/?a=commitdiff_plain;h=bcc7fb2d626ac428401a7877a8cc0098999a077e;p=0xmirror%2Fopenvpn.git Set UTF-8 as the codepage using manifest declaration Works on Windows 10+. This ensures any UTF-8 string we pass to ANSI API will not get interpreted in some local code page in effect at runtime. Although we do not use any such API, OpenSSL dll we link to does (e.g., the store API used for reading certificate and key from files). OpenSSL may fix this in future versions, but this is an easy workaround that looks harmless and appropriate. Fixes failure to read certificates when filenames contain non-ascii characters reported by: Carsten Mietzsch Ref: https://learn.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page Github: OpenVPN/openvpn#920 Change-Id: Ic4e233c788b16a862c1fddcf314a3da661072fb5 Signed-off-by: Selva Nair Acked-by: Lev Stipakov Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1413 Message-Id: <20251201090110.5487-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34805.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/openvpn.manifest b/src/openvpn/openvpn.manifest index fa5b3d7f..f9641521 100644 --- a/src/openvpn/openvpn.manifest +++ b/src/openvpn/openvpn.manifest @@ -14,6 +14,11 @@ + + + UTF-8 + +