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.
Summary
SUMMARY: I18N "Use localized sorting in more places"
Purpose of change
Improved internationalization / localization.
Describe the solution
Add a clang-tidy check to look for string comparisons that probably ought to be using localized rather than simple comparisons.
Resolve all the warnings it produces:
std::set
" comparisons. I switched those to useunordered_set
instead.localized_compare
(added in Localized sorting #39873)Describe alternatives you've considered
Could have gone further, but for this initial check I decided to just look at less-than comparison of
std::string
s.Testing
Looked at some of the UIs affected. They seem to be working as expected.
Additional context
I wasn't able to find anyone else to test the changes from #39873, but I did test the Windows build under Wine, and it seemed to work as expected there, which is hopeful.