From: "selvanair (Code Review)" Date: Fri, 28 Nov 2025 22:51:41 +0000 References: Reply-To: selva.nair@...277..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="DPzG9kOP2ZU="; 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: plaisthos Cc: openvpn-devel --DPzG9kOP2ZU= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. Hello plaisthos, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/1413?usp=3Demail to review the following change. 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 Change-Id: Ic4e233c788b16a862c1fddcf314a3da661072fb5 Signed-off-by: Selva Nair --- M src/openvpn/openvpn.manifest 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/13/1413/1 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: newchange Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ic4e233c788b16a862c1fddcf314a3da661072fb5 Gerrit-Change-Number: 1413 Gerrit-PatchSet: 1 Gerrit-Owner: selvanair Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos --DPzG9kOP2ZU= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: plaisthos.

selvanair would like plaisthos to review this change.

V= iew Change

Set UTF-8 as the codepage using manifest de=
claration

Works on Windows 10+. This ensures any UTF-8 string we pas= s to
ANSI API will not get interpreted in some local code page
in eff= ect 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
ke= y from files). OpenSSL may fix this in future versions,
but this is an e= asy workaround that looks harmless and appropriate.

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

Ref: https:= //learn.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-p= age

Change-Id: Ic4e233c788b16a862c1fddcf314a3da661072fb5
Signed-o= ff-by: Selva Nair <selva.nair@...277...>
---
M src/openvpn/open= vpn.manifest
1 file changed, 5 insertions(+), 0 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/change=
s/13/1413/1
diff --git a/src/openvpn/openvpn.manifest b/src/openvpn=
/openvpn.manifest
index fa5b3d7..f964152 100644
<= span>--- a/src/openvpn/openvpn.manifest
+++ b/src/openvpn/o= penvpn.manifest
@@ -14,6 +14,11 @@
= <supportedOS Id=3D"{e2011457-1546-43c5-a5fe-008deee3d3f0}"= ;/>
</application>
&= lt;/compatibility>
+ <application>
+ <windowsSettings>
+ <activeCodePage xmlns=3D"http://schem= as.microsoft.com/SMI/2019/WindowsSettings">UTF-8</activeCodePage= >
+ </wi= ndowsSettings>
+ = </application>
<trustInfo xmlns=3D"urn= :schemas-microsoft-com:asm.v3">
<securi= ty>
<requestedPrivileges>
<= span>

To view, visit change 1413. To unsubscribe, or for hel= p writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ic4e233c788b16a862c1fddcf314= a3da661072fb5
Gerrit-Change-Number: 1413
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <selva.nair@...1354...= ..>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
= --DPzG9kOP2ZU=--