You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unify KC/KD normalization behavior on Wasm (#121110)
Fixes#117116.
- Call `CheckNormalizationForm` before the ASCII fast path so
Browser/WASI throw `PlatformNotSupportedException` for FormKC/FormKD
regardless of input.
- Add wasm-specific test for checking if PNSE was thrown for both, ASCII
and non-ASCII with KC and KD.
#pragma warning disable CA1416// FormKC and FormKD are unsupported on browser, ValidateArguments is throwing PlatformNotSupportedException in that case so suppressing the warning here
18
+
#pragma warning disable CA1416// FormKC and FormKD are unsupported on browser, CheckNormalizationForm is throwing PlatformNotSupportedException in that case so suppressing the warning here
19
19
Debug.Assert(normalizationFormisNormalizationForm.FormC or NormalizationForm.FormD or NormalizationForm.FormKC or NormalizationForm.FormKD);
Copy file name to clipboardExpand all lines: src/libraries/System.Runtime/tests/System.Globalization.Extensions.Tests/Normalization/StringNormalizationTests.cs
0 commit comments