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

Fix breaking long words with wide utf8 characters #168

Merged
merged 1 commit into from
May 3, 2024

Conversation

w0rm
Copy link
Contributor

@w0rm w0rm commented May 3, 2024

@bugadani hello, it's me again 😁

Just noticed another issue when breaking words that contain chars longer than 1 byte.

LineElementParser consumes more characters than needed because str.len() actually measures in bytes, not in characters.

I would say it was quite fun and rewarding to find and fix this!

@bugadani
Copy link
Member

bugadani commented May 3, 2024

Good find, thank you! I'm going to leave this unreleased for a few days just in case you find more, hope you don't mind :)

@bugadani bugadani merged commit e1559ec into embedded-graphics:master May 3, 2024
7 checks passed
@w0rm
Copy link
Contributor Author

w0rm commented May 3, 2024

@bugadani sure, no rush on the release!

@w0rm w0rm deleted the fix-breaking-long-words branch May 3, 2024 19:35
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