Skip to content

Refactor Unicode General Category lookup#203

Merged
whereswaldon merged 6 commits into
mainfrom
unicode-categories
Oct 9, 2025
Merged

Refactor Unicode General Category lookup#203
whereswaldon merged 6 commits into
mainfrom
unicode-categories

Conversation

@benoitkugler

@benoitkugler benoitkugler commented Oct 2, 2025

Copy link
Copy Markdown
Contributor

Recent changes in the standard unicode package have broken some tests.

This PR aims at fixing this behavior and ensuring no future change would break our tests by not relying on the standard package anymore.

There is a backward incompatible change : simplifying LookupType to IsAssigned, but it is in the unicodedata package which is mainly internal, so that (with proper minor version bump) it should be acceptable.

Fixes #202

@andydotxyz andydotxyz left a comment

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.

This looks like a breaking change - any code using unicode.LookupType will no longer compile.
Any reason we can't leave the old API as well so it doesn't break peoples apps?

@benoitkugler

Copy link
Copy Markdown
Contributor Author

This looks like a breaking change - any code using unicode.LookupType will no longer compile. Any reason we can't leave the old API as well so it doesn't break peoples apps?

We can indeed keep this function (done in 93bee5f).

@andydotxyz andydotxyz left a comment

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.

Thanks

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

Thank you!

@whereswaldon
whereswaldon merged commit d957b37 into main Oct 9, 2025
14 checks passed
@benoitkugler
benoitkugler deleted the unicode-categories branch October 9, 2025 16:28
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.

Go v1.25 seems to break some tests

3 participants