Skip to content

fix: use UTF-8 encoding with screen #10190

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

Merged
merged 2 commits into from
Oct 11, 2023
Merged

fix: use UTF-8 encoding with screen #10190

merged 2 commits into from
Oct 11, 2023

Conversation

code-asher
Copy link
Member

@code-asher code-asher commented Oct 10, 2023

This will make characters like ❯ and ⇣ work, for example.

Honestly I am not 100% sure of the consequences but defaulting to UTF-8 seems reasonable?

I experimented with adding a test but without success (for either backend); maybe the vt10x emulator we use in the tests does not support UTF-8. I did confirm it works manually though.

Fixes #9343

This will make characters like ❯ and ⇣ work, for example.
@code-asher code-asher changed the title Use UTF-8 encoding with screen fix: use UTF-8 encoding with screen Oct 10, 2023
@code-asher code-asher requested a review from mafredri October 10, 2023 18:31
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing!

Too bad the test didn't work out. But tbh it might be best to not rely on vt10x too much, I see the project doesn't even have the issue tracker active.

Could we perhaps verify if this works via a regular pty? We don't really need to verify that the output is structured correctly, just see if we can find the correct UTF-8 characters we're looking for.

@code-asher
Copy link
Member Author

code-asher commented Oct 11, 2023

Could we perhaps verify if this works via a regular pty?

Oh duh! Pushing a test now. I verified it fails without -U and passes with -U.

@code-asher code-asher merged commit a907781 into main Oct 11, 2023
@code-asher code-asher deleted the asher/screen-utf8 branch October 11, 2023 21:25
@github-actions github-actions bot locked and limited conversation to collaborators Oct 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Web terminal does not render correctly when screen is present
2 participants