W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

Re: [IndexedDB] Closing on bug 9903 (collations)

From: Aryeh Gregor <Simetrical+w3c@gmail.com>
Date: Mon, 2 May 2011 14:57:15 -0400
Message-ID: <BANLkTin6SnCgUQSseVXUGsb3jKtgGbcjaA@mail.gmail.com>
To: Keean Schupke <keean@fry-it.com>
Cc: Jonas Sicking <jonas@sicking.cc>, Pablo Castro <Pablo.Castro@microsoft.com>, "public-webapps@w3.org" <public-webapps@w3.org>
On Fri, Apr 29, 2011 at 3:19 PM, Keean Schupke <keean@fry-it.com> wrote:
> As long as we have a binary mode I am happy.

Something I didn't think to mention: what exactly is "binary mode" for
DOMStrings?  I guess it means you encode as big-endian UTF-16, then
sort bytewise?  This is kind of evil, but it matches what sort() does,
so I guess it should be the required behavior.  (It's kind of evil
because it doesn't match code-point order, unlike if you encoded as
UTF-8.  E.g., U+10000 is encoded as 0xd800dc00 and U+E000 is 0xe000,
so U+E000 sorts after U+10000.)

Perhaps this should be spelled out more clearly in the spec.
Received on Monday, 2 May 2011 18:58:07 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:45 GMT