Bug 181004 - [Meta][Win] Support ICU 59.1+
Summary: [Meta][Win] Support ICU 59.1+
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Fujii Hironori
URL:
Keywords: InRadar
Depends on: 180963
Blocks:
  Show dependency treegraph
 
Reported: 2017-12-19 15:20 PST by Don Olmstead
Modified: 2019-03-06 10:19 PST (History)
8 users (show)

See Also:


Attachments
WIP patch (9.90 KB, patch)
2018-02-07 22:50 PST, Fujii Hironori
no flags Details | Formatted Diff | Diff
Patch (1.40 KB, patch)
2018-02-07 23:22 PST, Fujii Hironori
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Don Olmstead 2017-12-19 15:20:37 PST
ICU 59 changed the value of UChar from wchar_t to char16_t. This causes a number of compilation issues when building on Windows.

https://bugs.webkit.org/show_bug.cgi?id=172729 started the migration but it does not handle all cases for Windows ports.
Comment 1 Fujii Hironori 2018-02-07 22:50:33 PST
Created attachment 333357 [details]
WIP patch

This is a half-baked WIP patch.
We need a lot of conversions between UChar* and wchar_t*.
I think this is a bad idea.

wchar_t and char16_t has the identical internal representation in Windows.
I think we should define -DUCHAR_TYPE=wchar_t for Windows port.

http://icu-project.org/apiref/icu4c/umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac
Comment 2 Fujii Hironori 2018-02-07 23:22:46 PST
Created attachment 333359 [details]
Patch
Comment 3 Don Olmstead 2018-02-08 12:12:11 PST
(In reply to Fujii Hironori from comment #2)
> Created attachment 333359 [details]
> Patch

Does this require ICU to be compiled with that option as well?
Comment 4 Don Olmstead 2018-02-08 13:20:04 PST
(In reply to Don Olmstead from comment #3)
> (In reply to Fujii Hironori from comment #2)
> > Created attachment 333359 [details]
> > Patch
> 
> Does this require ICU to be compiled with that option as well?

I'll cq+ it if you can confirm whether or not this is the case Fujii
Comment 5 Fujii Hironori 2018-02-08 17:05:58 PST
(In reply to Don Olmstead from comment #3)
> Does this require ICU to be compiled with that option as well?

No, it doesn't.
Comment 6 Don Olmstead 2018-02-08 17:32:29 PST
(In reply to Fujii Hironori from comment #5)
> (In reply to Don Olmstead from comment #3)
> > Does this require ICU to be compiled with that option as well?
> 
> No, it doesn't.

Ok cq+ on it. I still think we need to figure out what we should be doing for this though to actually fix it. I'm not sure that this will be available for an extended period of time.
Comment 7 WebKit Commit Bot 2018-02-08 17:58:28 PST
Comment on attachment 333359 [details]
Patch

Clearing flags on attachment: 333359

Committed r228305: <https://trac.webkit.org/changeset/228305>
Comment 8 WebKit Commit Bot 2018-02-08 17:58:30 PST
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2018-02-08 17:59:28 PST
<rdar://problem/37374476>