From 5ea0b4319f70c90d20d7a26008697365c869885f Mon Sep 17 00:00:00 2001 From: Selva Nair Date: Fri, 2 Dec 2022 23:35:42 -0500 Subject: [PATCH] Open PLAP debug file in unicode mode _wfopen requires ccs= to support writing of non-ascii text. This was missed in the initial commit. Signed-off-by: Selva Nair --- plap/plap_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plap/plap_common.c b/plap/plap_common.c index 6d76001..f6dad50 100644 --- a/plap/plap_common.c +++ b/plap/plap_common.c @@ -37,7 +37,7 @@ void init_debug() { if (!fp) - fp = _wfopen(L"C:\\Windows\\Temp\\openvpn-plap-debug.txt", L"a+"); + fp = _wfopen(L"C:\\Windows\\Temp\\openvpn-plap-debug.txt", L"a+,ccs=UTF-8"); InitializeCriticalSection(&log_write); }