mirror of https://github.com/OpenVPN/openvpn-gui
Open PLAP debug file in unicode mode
_wfopen requires ccs=<encoding> to support writing of non-ascii text. This was missed in the initial commit. Signed-off-by: Selva Nair <selva.nair@gmail.com>pull/560/head
parent
5c06c3a0cc
commit
5ea0b4319f
|
@ -37,7 +37,7 @@ void
|
||||||
init_debug()
|
init_debug()
|
||||||
{
|
{
|
||||||
if (!fp)
|
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);
|
InitializeCriticalSection(&log_write);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue