Bug 230199

Summary: [Regression] String.prototype.localeCompare() wrong results when comparing lowercase and uppercase string
Product: WebKit Reporter: Binyamin <7raivis>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Major CC: 7raivis, ap, kevin_neal, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: Mac (Intel)   
OS: macOS 11   

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
<rdar://problem/83156084>
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 ***