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

Fixed off-by-one bytes bug in qscintilla when using unicode #1235

Closed
wants to merge 1 commit into from

Conversation

traverseda
Copy link

If we just grab self.parent().text is causes off by one errors in all downstream tokens, if you have unicode glyphs that are longer than one byte.

If we just grab self.parent().text is causes off by one errors in all downstream tokens, if you have unicode glyphs that are longer than one byte.

Try adding © and see for yourself!
@erezsh
Copy link
Member

erezsh commented Jan 30, 2023

Using the latest version of PyQt5, I'm not getting any error when using the symbol. (I just updated the version, see #1243)

However, I am getting suspiciously slow response time when editing a string in which that symbol exists. But your PR doesn't seem to affect it either way, it happens in both cases.

@erezsh erezsh closed this Mar 9, 2023
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