Bug 230199 - [Regression] String.prototype.localeCompare() wrong results when comparing lowercase and uppercase string
Summary: [Regression] String.prototype.localeCompare() wrong results when comparing lo...
Status: RESOLVED DUPLICATE of bug 224047
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: Safari 14
Hardware: Mac (Intel) macOS 11
: P2 Major
Assignee: Nobody
Keywords: InRadar
Depends on:
Reported: 2021-09-12 02:55 PDT by Binyamin
Modified: 2021-09-15 11:08 PDT (History)
5 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Binyamin 2021-09-12 02:55:28 PDT
This is regression bug, was working as expected on Safari 13.1.2.
All browsers (Chrome, Firefox, IE11, Safari 13.1.2) would result 1 for "lklhY8Lwzs".localeCompare("Lbt9ZT"), when latest Safari 14.1.2 results -1
Comment 1 Sam Sneddon [:gsnedders] 2021-09-13 03:58:17 PDT
What language do you have the OS set to?

FWIW, I can't reproduce on Monterey with the OS set to English (UK).
Comment 2 Binyamin 2021-09-13 04:50:25 PDT
I experienced this issue on BrowserStack Mac Big Sur Safari 14.1.2. I think its locale is US English or International English.
Comment 3 Radar WebKit Bug Importer 2021-09-15 10:08:50 PDT
Comment 4 Yusuke Suzuki 2021-09-15 11:08:12 PDT
Thanks! It is fixed in bug 215798.
Please check that it is fixed in Safari Technology Preview :)

*** This bug has been marked as a duplicate of bug 215798 ***
Comment 5 Yusuke Suzuki 2021-09-15 11:08:48 PDT
Ah, no bug 224047 :)

*** This bug has been marked as a duplicate of bug 224047 ***