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

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Sun Dec 16 06:33:52 CET 2018


> AFAIU, ucs2 is a fixed length coding, while utf16 is a variable length one, so for a specific subset it might work, but in general, it won't.

I understand that, but if you see the function I referenced, it does utf8->utf16 conversion. The UCS2 is only on its name. Maybe we should rename it as part of this changeset to avoid future confusion.

> But in any case, theory aside, the tests were failing with the ucs2 variant, and passing with the utf16 one

What does it fail? There could be a bug here. Does windows require some specific canonical form? In the past we were using the windows conversion functions as you introduced them here, however we removed them because they had no reference to what standard they were using, my assumption was UCS2 because they didn't easily support variable length encoding, and thus the current name of the function.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/835#note_125295115
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/20181216/4a30496a/attachment.html>


More information about the Gnutls-devel mailing list