Skip to content
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

Culture support for in operator and Sort function #2539

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gregli-msft
Copy link
Contributor

@gregli-msft gregli-msft commented Jul 10, 2024

The in operator and Sort function were not culturally aware, resulting in incorrect results for Turkish and other I'm sure other languages.

The Lower, Upper, Proper, and SortByColumns functions are already culturally aware.

Our regular expression functions are not culturally aware, but that is an interesting design choice that is the subject of #2538.

For testing, this PR adds the ability to change the culture in this local REPL only, with a Language function overload that takes a language tag as the first argument. Also added is a #SETUP handler to specify the culture for a .txt test file.

Removed ToLower from StringValue. It doesn't have enough context to do this on its own and be self contained, better to be very clear about how it is being done with CultureInfo.

@gregli-msft gregli-msft marked this pull request as ready for review July 10, 2024 19:54
@gregli-msft gregli-msft requested a review from a team as a code owner July 10, 2024 19:54
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.

None yet

2 participants