W3C home > Mailing lists > Public > public-webauthn@w3.org > July 2018

Re: [webauthn] truncation to 64-byte upper limit doesn't mention character boundaries

From: =JeffH via GitHub <sysbot+gh@w3.org>
Date: Wed, 11 Jul 2018 21:16:11 +0000
To: public-webauthn@w3.org
Message-ID: <issue_comment.created-404312003-1531343770-sysbot+gh@w3.org>
fyi/fwiw, here's "[counting [unicode] characters in utf-8 strings](http://canonical.org/~kragen/strlen-utf8)", where they note (at end):

* the penalty for counting UTF-8 characters, or indexing into or iterating over the characters of a UTF-8 string, is very small. 

* People probably shouldn't worry about the efficiency of counting and iterating over characters in UTF-8 strings, at least not if they were using null-terminated C strings before.

..and provide several code examples.


-- 
GitHub Notification of comment by equalsJeffH
Please view or discuss this issue at https://github.com/w3c/webauthn/issues/973#issuecomment-404312003 using your GitHub account
Received on Wednesday, 11 July 2018 21:16:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:58:52 UTC