From: "cron2 (Code Review)" Date: Mon, 1 Dec 2025 11:11:20 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., selva.nair@...277..., openvpn-devel@lists.sourceforge.net, lstipakov@...277... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="KazDMgt82j8="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Set UTF-8 as the codepage using manifest declaration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: selvanair Cc: stipa , plaisthos , openvpn-devel --KazDMgt82j8= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/14= 13?usp=3Demail ) Change subject: Set UTF-8 as the codepage using manifest declaration ...................................................................... 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@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34= 805.html Signed-off-by: Gert Doering --- M src/openvpn/openvpn.manifest 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/src/openvpn/openvpn.manifest b/src/openvpn/openvpn.manifest index fa5b3d7..f964152 100644 --- a/src/openvpn/openvpn.manifest +++ b/src/openvpn/openvpn.manifest @@ -14,6 +14,11 @@ + + + UTF-8 + + -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1413?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ic4e233c788b16a862c1fddcf314a3da661072fb5 Gerrit-Change-Number: 1413 Gerrit-PatchSet: 2 Gerrit-Owner: selvanair Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-Reviewer: stipa Gerrit-CC: openvpn-devel --KazDMgt82j8= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 sub= mitted this change.

View Change

Set UTF-8 as the codepage using manifest declara=
tion

Works on Windows 10+. This ensures any UTF-8 string we pass to<= br>ANSI API will not get interpreted in some local code page
in effect a= t 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 fro= m files). OpenSSL may fix this in future versions,
but this is an easy w= orkaround that looks harmless and appropriate.

Fixes failure to read= certificates when filenames contain non-ascii
characters reported by: C= arsten Mietzsch <Carsten.Mietzsch@...2971...>

Ref: https://lea= rn.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-pageGithub: OpenVPN/openvpn#920

Change-Id: Ic4e233c788b16a862c1fddcf31= 4a3da661072fb5
Signed-off-by: Selva Nair <selva.nair@...277...>Acked-by: Lev Stipakov <lstipakov@...277...>
Gerrit URL: https://= gerrit.openvpn.net/c/openvpn/+/1413
Message-Id: <20251201090110.5487-= 1-gert@...1296...>
URL: https://www.mail-archive.com/openvpn-devel@...1224...= sts.sourceforge.net/msg34805.html
Signed-off-by: Gert Doering <gert@...220...= ..1296...>
---
M src/openvpn/openvpn.manifest
1 file changed, 5= insertions(+), 0 deletions(-)

diff --git a/src/openvpn/openvpn.manifest b/src/openvpn/openvpn.manifest=

index fa5b3d7..f964152 100644
--- a/src/op= envpn/openvpn.manifest
+++ b/src/openvpn/openvpn.manifest
@@ -14,6 +14,11 @@
<supporte= dOS Id=3D"{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
= </application>
</compatibility= >
+ <applica= tion>
+ <= ;windowsSettings>
= + <activeCodePage xmlns=3D"http://schemas.microsoft.com/= SMI/2019/WindowsSettings">UTF-8</activeCodePage>
+ </windowsSettings>=

+ </applicatio= n>
<trustInfo xmlns=3D"urn:schemas-microsof= t-com:asm.v3">
<security>
= <requestedPrivileges>

<= /pre>

To view, visit change 1413. To unsubscribe, or for help writing mail fi= lters, visit set= tings.

=
Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ic4e233c788b16a862c1fddcf314= a3da661072fb5
Gerrit-Change-Number: 1413
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <selva.nair@...1354...= ..>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-Reviewer: stipa <lstipakov@...277...= >
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --KazDMgt82j8=--