Bug 210554 - REGRESSION (STP 100-104): Incorrect locale and language codes for Russian
Summary: REGRESSION (STP 100-104): Incorrect locale and language codes for Russian
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yusuke Suzuki
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-04-15 09:55 PDT by Alexey Proskuryakov
Modified: 2020-09-14 20:23 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.