[gnutls-devel] GnuTLS | Windows & Windows Store store patches (!835)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Sat Dec 15 21:21:26 CET 2018


Nikos Mavrogiannopoulos started a new discussion on lib/system.c:

>  	gnutls_gettime = _gnutls_gettime;
>  }
>  
> +#ifdef _WIN32
> +int _gnutls_utf8_to_utf16(const char* utf8, gnutls_datum_t * output)
> +{
> +	int len = MultiByteToWideChar (CP_UTF8, 0, utf8, -1, NULL, 0);
> +    if (len == 0)
> +        return GNUTLS_E_MEMORY_ERROR;

Isn't this identical to `_gnutls_utf8_to_ucs2`? We can rename it to `_gnutls_utf8_to_utf16` for clarity if that's the case.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/835#note_125262796
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20181215/e22b076c/attachment.html>


More information about the Gnutls-devel mailing list