Bug 210554

Summary: REGRESSION (STP 100-104): Incorrect locale and language codes for Russian
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: DOMAssignee: Yusuke Suzuki <ysuzuki>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: david, keith_miller, mmaxfield, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Description Alexey Proskuryakov 2020-04-15 09:55:56 PDT
[new Intl.DateTimeFormat("default").resolvedOptions().locale,
new Intl.DateTimeFormat().resolvedOptions().locale,
new Intl.DateTimeFormat().format(new Date()),
navigator.language]

Shipping Safari and STP 100:

["ru", "ru", "15.04.2020", "ru"]

STP 104:

["ru-RU", "ru-RU", "15.04.2020", "ru-ru"]

Chrome:

["ru", "ru", "15.04.2020", "ru-RU"]

I am not aware of any reasons to change shipping Safari behavior, and definitely not to be different from Chrome.
Comment 1 Radar WebKit Bug Importer 2020-04-15 09:56:06 PDT
<rdar://problem/61832849>
Comment 2 Alexey Proskuryakov 2020-04-15 09:58:40 PDT
Here is my system configuration, which actually surprised me, but ru-RU isn't there for sure:

$ defaults read -g AppleLanguages
(
    "ru-US",
    "en-US",
    "zh-Hant-US",
    "ja-US",
    "ko-US",
    "vi-US",
    "de-US",
    "fr-US",
    "zh-Hans-US",
    hi
)
$ defaults read -g AppleLocale   
ru_US
Comment 3 Yusuke Suzuki 2020-09-14 20:23:39 PDT
This is fixed internally for newer STP.