Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Initial changes for globalization hybrid mode #81470
Initial changes for globalization hybrid mode #81470
Changes from 15 commits
f8e72d8
a82743d
954ed0f
1362d45
cb23688
af32324
83f4e7b
4ac3e6b
60e090a
26ce9a9
a10f09d
dc347f5
09d599e
bacc227
e844a40
f7f730a
46c9e68
1b7aa37
789613b
0b9f32d
1aee1e0
b382101
1556d17
5ab240a
5028045
ad4c98b
3eb5cae
27424bf
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
GlobalizationMode.UseNls
is always going to be false on iOS. It is Windows-specific property. You can omit it for iOS-specific code.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.
Should this be under iOS ifdef - since all uses are under iOS ifdef as well?
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.
Yes, plus wasm and wasi as well.
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.
For now I will put under ioslike platforms. For wasm we have seperate PR.
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.
If
HybridGlobalization
is not going to be a feature switch, should this be usingAppContextConfigHelper.GetBooleanConfig
? Will the switchSystem.Globalization.Hybrid
ever be set? I thinkSystem.Globalization.Invariant
andSystem.Globalization.PredefinedCulturesOnly
switches are probably set in theTrimmingTests
runtime/src/libraries/System.Runtime/tests/TrimmingTests/System.Runtime.TrimmingTests.proj
Lines 16 to 19 in 9b38f2a
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.
Once more functionalities will be implemented this will be used and we can have tests in TrimmingTests for hybrid mode.
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.
This should still have
GlobalizationNative_
prefix to follow the coding conventions.https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/interop-guidelines.md#unix-shims: all exports should have a prefix that corresponds to the Libraries' name, e.g. "SystemNative_" or "CryptoNative_"