Skip to content

Add globalization API breaking change - #18492

Merged
gewarren merged 7 commits into
dotnet:masterfrom
gewarren:glob-bc
May 19, 2020
Merged

gewarren merged 7 commits into
dotnet:masterfrom
gewarren:glob-bc

Conversation

@gewarren

@gewarren gewarren commented May 18, 2020 •

Copy link
Copy Markdown
Collaborator

@gewarren
gewarren requested a review from a team as a code owner May 18, 2020 23:14
@dotnet-bot dotnet-bot added this to the May 2020 milestone May 18, 2020
@gewarren
gewarren requested review from IEvangelist and safern May 18, 2020 23:34
@safern
safern requested a review from tarekgh May 18, 2020 23:36
## NLS

- Determines whether .NET uses National Language Support (NLS) or International Components for Unicode (ICU) globalization APIs for Windows apps. .NET 5.0 and later versions use ICU globalization APIs by default on Windows 10 May 2019 Update and later versions.
- Default: Use ICU globalization APIs (`false`).

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.

This should instead be:

Suggested change
- Default: Use ICU globalization APIs (`false`).
- Default: Use NLS globalization APIs (`false`).

or

Suggested change
- Default: Use ICU globalization APIs (`false`).
- Default: Use ICU globalization APIs (`true`).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is trying to show the default value if you don't explicitly set it, which is to use ICU, correct?

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.

Right, if the switch is not present, the default behavior is to use ICU.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

So should I leave the default out altogether? Your suggestion is not making sense to me.

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.

Now I understand what this is saying. However the (false) inside the parenthesis was confusing.

but this is saying that the default is to use ICU... maybe remove the false part?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks @safern. I agree that it might be confusing as written. Just to understand better, what did you think the false referred to? I'm trying to devise a better way to display defaults for this setting and all the others that currently list it in the same way.

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.

I understood false referred to Use ICU globalization APIs — but after your response I was then able to understand it referred to using NLS and that the default was referring to it using ICU.

Does that make sense?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, that makes sense, thanks!

@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.

added a couple of comments. LGTM otherwise. Thanks for getting this written.

@safern safern 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 @gewarren

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

String comparison, sorting and globalization use ICU instead of NLS in Windows 19H1+

6 participants