Skip to content

Fix backspace for wide chars in post - #572

Merged
ihabunek merged 1 commit into
ihabunek:masterfrom
izkluxcvy:fix/utf8-input-bug
Apr 4, 2026
Merged

ihabunek merged 1 commit into
ihabunek:masterfrom
izkluxcvy:fix/utf8-input-bug

Conversation

@izkluxcvy

Copy link
Copy Markdown
Contributor

When inputting wide characters (e.g. CJK, emoji) via input(), pressing backspace deleted only one byte at a time instead of one character, causing utf-8 decode error.

Fix by importing readline.

When inputting wide characters (e.g. CJK, emoji) via input(),
pressing backspace deleted only one byte at a time instead of
one character, causing utf-8 decode error.

Fix by importing readline.
@ihabunek
ihabunek merged commit bf69879 into ihabunek:master Apr 4, 2026
5 checks passed
@ihabunek

ihabunek commented Apr 4, 2026

Copy link
Copy Markdown
Owner

Thanks!

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