[Webkit-unassigned] [Bug 224047] localeCompare does not define a total ordering on all strings

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 6 16:56:50 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=224047

Rob <rob at agilebits.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rob at agilebits.com

--- Comment #2 from Rob <rob at agilebits.com> ---
I was looking into this a bit with Eben and simplified the test case a bit further. It looks like when comparing pure ASCII strings, localeCompare does a case-sensitive comparison. If the strings are not pure ASCII, localeCompare does a case-insensitive comparison. The only problematic result in this snippet is the third line:

```
"ABC".localeCompare("ABD Ã") === -1
"ABD Ã".localeCompare("AbE") === -1
"AbE".localeCompare("ABC") === -1
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210406/363f0722/attachment.htm>


More information about the webkit-unassigned mailing list