Skip to content

Fix UTF-8 handling with grammars #1415

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

Merged
merged 1 commit into from
Apr 30, 2024
Merged

Fix UTF-8 handling with grammars #1415

merged 1 commit into from
Apr 30, 2024

Conversation

jsoma
Copy link
Contributor

@jsoma jsoma commented Apr 30, 2024

Use Python's built-in UTF-8 handling to get code points, as const_char_p currently steps through characters, not bytes.

Closes #1349

Use Python's built-in UTF-8 handling to get code points
@abetlen
Copy link
Owner

abetlen commented Apr 30, 2024

@jsoma thank you so much!

@abetlen abetlen merged commit 3226b3c into abetlen:main Apr 30, 2024
16 checks passed
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.

Grammar File not Working for Japanese
2 participants