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

Shell fits incorrect number of utf8 characters in a line #1042

Closed
anuchak opened this issue Nov 18, 2022 · 0 comments
Closed

Shell fits incorrect number of utf8 characters in a line #1042

anuchak opened this issue Nov 18, 2022 · 0 comments
Assignees

Comments

@anuchak
Copy link
Collaborator

anuchak commented Nov 18, 2022

Currently for rendering character on the embedded shell, we have a fixed size buffer in which to store the characters.
For ASCII all the characters are displayed till the end of the line and only then wrapped around.
For UTF-8 however, much lower number of characters are displayed in 1 line, the reason for this being they take up more no. of bytes in the buffer but lesser no. of characters.

The expected behaviour for this is, even for UTF-8 we display the right number of characters and only then wrap around.

@anuchak anuchak mentioned this issue Nov 18, 2022
@aziz-mu aziz-mu self-assigned this Nov 23, 2022
@aziz-mu aziz-mu closed this as completed Dec 13, 2022
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

No branches or pull requests

2 participants