Skip to content

Fixed country name string compare to work with unicode #78

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

Closed
wants to merge 4 commits into from

Conversation

8ctopus
Copy link
Contributor

@8ctopus 8ctopus commented Jul 25, 2022

Hi there,

I found a significant issue in the library when looking up for a country that contains non ASCII characters such as Côte d'Ivoire.
The current function to case-insensitive string compare does only work in the ASCII range but not with unicode.
More information on the issue can be found here for example: https://stackoverflow.com/questions/5473542/case-insensitive-string-comparison

I've fixed it and added a test for it.

@8ctopus
Copy link
Contributor Author

8ctopus commented Sep 6, 2022

Anyone alive on the project?

@alcohol
Copy link
Owner

alcohol commented Sep 7, 2022

Sorry, I have not found much time to work on my open source projects for quite some time now. This change is trivial though and definitely welcome. I'll get it sorted today and get a new release out.

@alcohol
Copy link
Owner

alcohol commented Sep 7, 2022

Rebased and merged in 40ab848

@alcohol alcohol closed this Sep 7, 2022
@8ctopus 8ctopus deleted the fix-compare branch January 23, 2023 11:31
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.

2 participants