ja-JP-u-ca-japanese locale does not include Heisei era
Reported by
kenta.ic...@nijibox.co.jp,
Jun 1 2018
|
|||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36
Steps to reproduce the problem:
1. run
```
new Intl.DateTimeFormat('ja-JP-u-ca-japanese', {year: 'numeric'}).format(new Date(2018, 1, 1))
```
or
```
(new Date(2018, 1, 1)).toLocaleDateString('ja-JP-u-ca-japanese')
```
in console
What is the expected behavior?
result:
chrome 66-> 平成30年
chrome 67-> 30年
What went wrong?
Does this change is intended to?
Did this work before? Yes 66
Chrome version: 67.0.3396.62 Channel: stable
OS Version: OS X 10.13.3
Flash Version:
,
Jun 1 2018
,
Jun 1 2018
FYI.
Firefox and Safari don't add "平成" for them.
Adding { era:"long" } shows "平成".
,
Jun 1 2018
Able to reproduce issue on reported chrome version 67.0.3396.62 & on latest chrome 69.0.3446.0 using Mac 10.13.3,Windows 10 and Ubuntu 17.10 . Hence providing bisect information below. Bisect Info: ================ Good build: 67.0.3396.8 Bad build: 67.0.3396.10 CHANGELOG URL: https://chromium.googlesource.com/chromium/src/+log/67.0.3396.8..67.0.3396.10?pretty=fuller&n=10000 @js...@chromium.org/jungshik@google.com:Could anyone please help us in identifying the correct suspect for this issue as we are unable to find the suspect from the above change log. Thanks!
,
Jun 1 2018
This is due to https://chromium-review.googlesource.com/1006915 . It makes v8-compliant to the spec, but OTOH, it makes the result of this case less desirable. There's an spec bug to change the spec to make this and others work better. I'll add this example to the spec bug. Dan: do you remember the spec bug on this issue (honoring Unicode extension such as 'ca-japanese' when picking the best match pattern out of 'skeleton')? If you remember, please add this example to that. I'll look for it as well and try to add this to the bug.
,
Jun 3 2018
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by ajha@chromium.org
, Jun 1 2018