Skip to content

Honor user setting overrides for current culture when using ICU on Windows - #38372

Merged
safern merged 10 commits into
dotnet:masterfrom
safern:HonorUserSettingsCurrentCulture
Jul 3, 2020
Merged

safern merged 10 commits into
dotnet:masterfrom
safern:HonorUserSettingsCurrentCulture

Conversation

@safern

@safern safern commented Jun 25, 2020

Copy link
Copy Markdown
Member

Fixes: #37121

Adding support to read user overrides from the OS when using ICU on Windows when the locale information we're getting is the user's default locale.

@tarekgh the only way I could think we could test this would be by modifying the registry key and then clearing the cache data, do you think we should do that?

@ghost

ghost commented Jun 25, 2020

Copy link
Copy Markdown

Tagging subscribers to this area: @tarekgh, @safern, @krwq
Notify danmosemsft if you want to be subscribed.

private void InitUserOverride(bool useUserOverride)
{
// Unix doesn't support user overrides
_bUseOverrides = false;

@danmoseley danmoseley Jul 2, 2020 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside (not this PR) it would be nice at some point to remove all the "Hungarian notation" in CultureData

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I agree, that'd be a nice cleanup.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hungarian notations is actually to match Windows exposed API's fields. I am not pushing again the clean up but wanted to tell why we had it in the first place.

@tarekgh tarekgh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @safern for getting this fixed

@safern
safern merged commit 3cd9172 into dotnet:master Jul 3, 2020
@safern
safern deleted the HonorUserSettingsCurrentCulture branch July 3, 2020 03:57
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable Globalization to read the user setting overrides for current cultures when using ICU

7 participants