-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Enable ICU trimming for Invariant=true and PredefinedCulturesOnly unspecified #56667
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
Conversation
|
Tagging subscribers to this area: @tarekgh, @safern Issue Details@RalfKornmannEnvision have noticed that ICU initialization is not getting trimmed when Invariant=true and PredefinedCulturesOnly unspecified (https://gitter.im/dotnet/corert?at=610514ee36b0b97fa2d99aff). The problem is that the Setting class constructor that initializes ICU gets referenced by the PredefinedCulturesOnly property. Moving the PredefinedCulturesOnly out of the Setting class fixes the problem.
|
src/libraries/System.Private.CoreLib/src/System/Globalization/GlobalizationMode.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Globalization/GlobalizationMode.cs
Show resolved
Hide resolved
| static Settings() | ||
| { | ||
| if (!Invariant) | ||
| // Use GlobalizationMode.Invariant to allow ICU initialization to be trimmed when Invariant=false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when Invariant=false => when Invariant=true
@RalfKornmannEnvision noticed that ICU initialization is not getting trimmed when Invariant=true and PredefinedCulturesOnly is unspecified (https://gitter.im/dotnet/corert?at=610514ee36b0b97fa2d99aff). The problem is that the Setting class constructor that initializes ICU gets referenced by the PredefinedCulturesOnly property in this case. Moving the PredefinedCulturesOnly out of the Setting class fixes the problem.