Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[browser] Remove WASM HybridGlobalization from runtime code #110567

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

ilonatommy
Copy link
Member

@ilonatommy ilonatommy commented Dec 10, 2024

Connected PRs:
#110526
#110534

This is the last PR aiming at removing HybridGlobalization on WASM. Removals:

  • code from JS, including removal of hybrid globalization module from rollup
  • code from icalls
  • code from libraries, including stubs
  • passing the flag
  • processing the hybrid globalization assets, including segmentation-rules
  • removing hybrid-specific asserts in WBT
  • removing Blazor hybrid WBT

Renames / preserved code:
We are leaving JS-based globalization method GetLocaleInfo to support APIs like NativeName and DisplayName in the regular, ICU globalization mode. The code will be exported by src\mono\browser\runtime\globalization.ts.

  • rename locales-common.ts -> globalization-locale.ts
  • move useful helper methods to globalization-locale.ts

Closes #102373, #95795, #98483, #95921

@ilonatommy ilonatommy added arch-wasm WebAssembly architecture area-System.Globalization os-browser Browser variant of arch-wasm labels Dec 10, 2024
@ilonatommy ilonatommy added this to the 10.0.0 milestone Dec 10, 2024
@ilonatommy ilonatommy self-assigned this Dec 10, 2024
@ilonatommy
Copy link
Member Author

ilonatommy commented Dec 10, 2024

We finish with

nugets\microsoft.dotnet.sharedframework.sdk\10.0.0-beta.24605.1\targets\sharedfx.targets(305,5): error : The following files are missing entries in the templated manifest: icudt_hybrid.dat. Add these file names with extensions to the 'PlatformManifestFileEntry' item group for the runtime pack and corresponding ref pack to include them in the platform manifest.

Edit:
we have to add a change to icu repo, so that we stop shipping icudt_hybrid.dat for wasm.

@ilonatommy
Copy link
Member Author

ilonatommy commented Dec 11, 2024

WBT tests will fail until dotnet/icu#536 flows in. From this reason, I am reverting WBT changes as well. They will be introduced in another PR. Removals for the follow up:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-System.Globalization os-browser Browser variant of arch-wasm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[browser][hybridglobalization][aot] Assert.StartsWith cannot find a match
1 participant