From: "cron2 (Code Review)" Date: Mon, 1 Dec 2025 11:11:17 +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="nnH6mn7eSrI="; 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 , plaisthos , stipa Cc: openvpn-devel --nnH6mn7eSrI= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1413?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by stipa 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(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/13/1413/2 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: newpatchset 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 --nnH6mn7eSrI= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #2 to the change originally created by selvanair.<= /p>

Vi= ew Change

The following approvals got outdated and were removed: Code-Review+2 by stipa

Set UTF-8 as the codepage using man=
ifest declaration

Works on Windows 10+. This ensures any UTF-8 strin= g we pass to
ANSI API will not get interpreted in some local code pagein 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 a= nd
key from files). OpenSSL may fix this in future versions,
but this= is an easy workaround that looks harmless and appropriate.

Fixes fa= ilure to read certificates when filenames contain non-ascii
characters r= eported by: Carsten Mietzsch <Carsten.Mietzsch@...2971...>

Ref= : https://learn.microsoft.com/en-us/windows/apps/design/globalizing/use-utf= 8-code-page
Github: OpenVPN/openvpn#920

Change-Id: Ic4e233c788b16= a862c1fddcf314a3da661072fb5
Signed-off-by: Selva Nair <selva.nair@...493...= 277...>
Acked-by: Lev Stipakov <lstipakov@...277...>
Gerrit = URL: https://gerrit.openvpn.net/c/openvpn/+/1413
Message-Id: <2025120= 1090110.5487-1-gert@...1296...>
URL: https://www.mail-archive.com/ope= nvpn-devel@lists.sourceforge.net/msg34805.html
Signed-off-by: Gert Doeri= ng <gert@...1296...>
---
M src/openvpn/openvpn.manifest
1 fi= le changed, 5 insertions(+), 0 deletions(-)

git =
pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/13/1413/2
= diff --git a/src/openvpn/openvpn.manifest b/src/openvpn/openvpn.manifest
index fa5b3d7..f964152 100644
--- a/src/openv= pn/openvpn.manifest
+++ b/src/openvpn/openvpn.manifest
@@ -14,6 +14,11 @@
<supportedOS= Id=3D"{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
</application>

</compatibility>= ;
+ <applicatio= n>
+ <wi= ndowsSettings>
+ = <activeCodePage xmlns=3D"http://schemas.microsoft.com/SMI= /2019/WindowsSettings">UTF-8</activeCodePage>
+ </windowsSettings>
+ </application&g= t;
<trustInfo xmlns=3D"urn:schemas-microsoft-c= om:asm.v3">
<security>
<requestedPrivileges>


To view, visit change 1413. To unsubscribe, or for help writing mail filte= rs, visit settin= gs.

Gerrit-MessageType: newpatchset
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>
= --nnH6mn7eSrI=--