-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ACK on this; a local build checks out with all sorts of creative UTF-8
device names I threw at it, including ones with spaces too.

- --
Josh Cepek

On 10/15/13 04:23, Heiko Hund wrote:
> Currently the TAP adapter name is fetched as an OEM string, which
> is problematic if it contains non-ASCII characters and is to used
> with netsh. The logfile also contains these non UTF-8 characters.
> 
> This patch fetches the name from the registry as UCS-2 and converts
> it right into UTF-8 before it's used.
> 
> Signed-off-by: Heiko Hund <heiko.h...@sophos.com>
> ---
>  src/openvpn/tun.c |   15 ++++++++++-----
>  1 file changed, 10 insertions(+), 5 deletions(-)
> 
> diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c
> index 86a43f2..9f53b23 100644
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQGcBAEBAgAGBQJSZtFAAAoJENcx2Xpgb9RjWeQL/RbLTXgI5i4cEVR5o3pa76Ov
xp28gEyhDlmMDWGiMSKGePQknn3GfymzZ7SgtYnJKercZcqSSMvGefHIK71FQ1R0
D9N17K0KEnEOAEFOLZjBGFITqPVmeDX4mVqLKYh6xOGCeae0BltgpfawOcjUTJ/h
/M6DsrkrSexizPWGa5mr4+kmxbWOJ0rbxeLNQT5neecibB7FWjQXDEpz74HwVMOU
x6FxtAOenFU6XYfFhczK3G1xxyWP1NqZhmNPUiSydAjTvXepzLIPvGocZjfozd22
f/Eyf3MvZuFBF7Xu8QZe1UU+E0kf7ZgMjHwzpNwDhfu4Halc/9NCn4895D8xrAXA
AyUfv3st1+UKdQNIHhyfXQLKP7vWFZYHS9hC3SN8G+wgeamyEP1WoFp1bimaCqhi
jHC/n+5piDN2iOCGe5H11RF+kx+UVxgs7+zyY/VT6zNyLQVnmWl0ynynh/i1hiUo
LsfooT2sRA4KCsGfRzEuEFtsMpqYKhqub+tH3JOYSw==
=xGRO
-----END PGP SIGNATURE-----


Reply via email to