[Webkit-unassigned] [Bug 215327] New: [GTK][WPE] regionDisplayName test failure with ICU 64

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 10 11:11:03 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=215327

            Bug ID: 215327
           Summary: [GTK][WPE] regionDisplayName test failure with ICU 64
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: lmoura at igalia.com

On GTK and WPE JS Bots:

stress/intl-displaynames.js.default: Exception: Error: bad value: 419
stress/intl-displaynames.js.default: shouldBe at intl-displaynames.js:5:24
stress/intl-displaynames.js.default: global code at intl-displaynames.js:49:17
stress/intl-displaynames.js.default: ERROR: Unexpected exit code: 3
FAIL: stress/intl-displaynames.js.default

The test expects the region code to be translated to the region name also in the short style for ICU >= 64.

The flatpak SDK ships ICU 64.2 (from the Freedesktop SDK 19.08) and is returning only the code. The same applies to ICU built from source.

Using Ubuntu's 66.1 displays the correct behavior.


Sample JS script:
```
var regionNames = new Intl.DisplayNames(['en'], {type: 'region', style: 'short'});
var longRegionNames = new Intl.DisplayNames(['en'], {type: 'region'});

var regions = [
    '001', '002', '003', '019', '419',
]

regions.forEach(region => {
    debug('Region code: ' + region);
    debug('Short: ' + regionNames.of(region));
    debug('Long: ' + longRegionNames.of(region));
});
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200810/0e47d276/attachment.htm>


More information about the webkit-unassigned mailing list