Bug 254887

Summary: Remove NFCNormalize from TextEncoding::encode
Product: WebKit Reporter: Anne van Kesteren <annevk>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 254909    
Bug Blocks:    

Description Anne van Kesteren 2023-04-02 07:16:24 PDT
Almost nothing in the web platform does this. If we need to do it somewhere it would be better if the caller handled it on its own. The default of NFCNormalize::Yes seems a little worrisome.
Comment 1 Anne van Kesteren 2023-04-03 02:41:58 PDT
This will be easier to investigate with bug 254909 out of the way.
Comment 2 Alexey Proskuryakov 2023-04-03 17:51:58 PDT
This is a longstanding difference, where we want to produce text in the same from as it normally happens on Windows, even if the source is decomposed.

Basically, we want the same user actions to produce the same content on macOS and on Windows, even if this means that underlying web platform APIs behave differently. That's not great, and at some point, we need to perform normalization as text enters WebKit, not when it's sent to servers.
Comment 3 Radar WebKit Bug Importer 2023-04-09 07:17:18 PDT
<rdar://problem/107805832>