Bug 231112

Summary: Some layout tests with Japanese glyphs fail if Japanese is included in the system "Preferred Languages" settings
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: Tools / TestsAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, mmaxfield, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Simon Fraser (smfr) 2021-10-01 16:47:20 PDT
I had Japanse in my list of "Preferred Languages" in the Language & Region system settings on Big Sur, and this causes a subset of layout tests to fail, including:
fast/ruby/ruby-justification.html
fast/text/backslash-to-yen-sign-euc.html
and tests with "ideograph" in the name.

We need to fix WTR to make tests pass independently of system language settings.
Comment 1 Myles C. Maxfield 2021-10-01 17:36:39 PDT
I can reproduce this.
Comment 2 Myles C. Maxfield 2021-10-01 17:38:25 PDT
Fixing DRT would be super difficult (bordering on "impossible") here. Fixing WKTR is probably not very difficult. We already have infrastructure for mocking the system font. We probably should just always enable that infrastructure.
Comment 3 Myles C. Maxfield 2021-10-01 18:40:45 PDT
Created attachment 439946 [details]
Patch
Comment 4 EWS 2021-10-03 10:10:52 PDT
Committed r283468 (242445@main): <https://commits.webkit.org/242445@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 439946 [details].
Comment 5 Radar WebKit Bug Importer 2021-10-03 10:11:19 PDT
<rdar://problem/83815251>