Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Format Windows error message in Unicode
- We assume that all text passed to the management interface and written to log file are in Unicode (UTF-8). This is broken by the use of the ANSI version of FormatMessage() for Windows error messages. Fix by using FormatMessageW() and converting the UTF-16 result to UTF-8. v2: assign return value of FormatMessageW() to DWORD, not int Github: fixes OpenVPN/openvpn#319 Signed-off-by: Selva Nair <[email protected]> Acked-by: Frank Lichtenheld <[email protected]> Message-Id: <[email protected]> URL: https://www.mail-archive.com/[email protected]/msg26598.html Signed-off-by: Gert Doering <[email protected]>
- Loading branch information