Bug 226996 - [JSC] Workaround ICU uloc_addLikelySubtags / uloc_minimizeSubtags bugs
Summary: [JSC] Workaround ICU uloc_addLikelySubtags / uloc_minimizeSubtags bugs
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yusuke Suzuki
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-06-14 16:24 PDT by Yusuke Suzuki
Modified: 2021-06-15 17:11 PDT (History)
8 users (show)

See Also:


Attachments
Patch (10.80 KB, patch)
2021-06-14 16:36 PDT, Yusuke Suzuki
ross.kirsling: review+
ews-feeder: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuke Suzuki 2021-06-14 16:24:46 PDT
[JSC] Workaround ICU uloc_addLikelySubtags / uloc_minimizeSubtags bugs
Comment 1 Yusuke Suzuki 2021-06-14 16:36:03 PDT
Created attachment 431384 [details]
Patch
Comment 2 Yusuke Suzuki 2021-06-14 16:36:06 PDT
<rdar://problem/79250513>
Comment 3 Ross Kirsling 2021-06-14 17:27:51 PDT
Comment on attachment 431384 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=431384&action=review

All of our ICU workaround code honestly makes me want to cry, but r=me. 😅

> Source/JavaScriptCore/ChangeLog:18
> +        This is workaround, and still this workaround is not complete since we could have many variants. In that case, uloc_addLikelySubtags / uloc_minimizeSubtags
> +        still fails, and in that case, for now, we give up performing uloc_addLikelySubtags / uloc_minimizeSubtags. Fixing this needs to be
> +        done in ICU side.

We should create a JIRA ticket for this.

> JSTests/stress/intl-long-locale-id-maximize-minimize.js:6
> +    const __v_16 = new Intl.Locale(`de-Latn-DE-u-cu-eur-em-default-hc-h23-ks-level1-lb-strict-lw-normal-ms-metric-nu-latn-rg-atzzzz-sd-atat1-ss-none-tz-atvie-va-posix`);

Let's use less cryptic variable names.
Comment 4 Yusuke Suzuki 2021-06-14 17:58:01 PDT
Comment on attachment 431384 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=431384&action=review

Thanks!

>> Source/JavaScriptCore/ChangeLog:18
>> +        done in ICU side.
> 
> We should create a JIRA ticket for this.

Filed https://unicode-org.atlassian.net/browse/ICU-21639

>> JSTests/stress/intl-long-locale-id-maximize-minimize.js:6
>> +    const __v_16 = new Intl.Locale(`de-Latn-DE-u-cu-eur-em-default-hc-h23-ks-level1-lb-strict-lw-normal-ms-metric-nu-latn-rg-atzzzz-sd-atat1-ss-none-tz-atvie-va-posix`);
> 
> Let's use less cryptic variable names.

Changed.
Comment 5 Yusuke Suzuki 2021-06-14 21:45:19 PDT
Committed r278859 (238803@main): <https://commits.webkit.org/238803@main>