Skip to content

Fix backspace for wide chars in post#572

Open
izkluxcvy wants to merge 1 commit intoihabunek:masterfrom
izkluxcvy:fix/utf8-input-bug
Open

Fix backspace for wide chars in post#572
izkluxcvy wants to merge 1 commit intoihabunek:masterfrom
izkluxcvy:fix/utf8-input-bug

Conversation

@izkluxcvy
Copy link

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

1 participant