Skip to content

[wasm][globalization] HybridGlobalization fix bug in change case - #86799

Merged
ilonatommy merged 5 commits into
dotnet:mainfrom
ilonatommy:fix-86794
May 30, 2023
Merged

[wasm][globalization] HybridGlobalization fix bug in change case#86799
ilonatommy merged 5 commits into
dotnet:mainfrom
ilonatommy:fix-86794

Conversation

@ilonatommy

@ilonatommyilonatommy commented May 26, 2023

Copy link
Copy Markdown
Member

Fixes#86794.

We should not allow the codepoints to expand because hybrid should work as much similar to ICU as possible.

ICU4C ignores "final sigma rule" (see documentation in the changes). We could support the inccorect ICU behavior but it's costly - e.g. by calling replace("\u03A3", "\u03C3") on each input string.

@ghost

Copy link
Copy Markdown

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #86794.

We should not allow the codepoints to expand because hybrid should work as much similar to ICU as possible.

Author:ilonatommy
Assignees:ilonatommy
Labels:

arch-wasm, area-System.Globalization

Milestone:-

Comment threadsrc/mono/wasm/runtime/hybrid-globalization/change-case.ts Outdated
Comment threadsrc/mono/wasm/runtime/hybrid-globalization/change-case.ts Outdated
Comment threadsrc/mono/wasm/runtime/hybrid-globalization/change-case.ts Outdated
Comment threadsrc/mono/wasm/runtime/hybrid-globalization/change-case.ts
Comment threadsrc/mono/wasm/runtime/hybrid-globalization/change-case.ts Outdated
@ilonatommy

Copy link
Copy Markdown
MemberAuthor

ios failures not connected

@ilonatommy
ilonatommy merged commit 8154757 into dotnet:mainMay 30, 2023
@ghostghost locked as resolved and limited conversation to collaborators Jun 29, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasmWebAssembly architecturearea-System.Globalization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[wasm][hybridglobalization] ToUpper/ToLower does not work correctly when the length of character changes

2 participants

@ilonatommy@pavelsavara