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

kernel: Fix broken wcwidth for wide chars #8382

Conversation

garazdawi
Copy link
Contributor

On OSs with old libc, the wcwidth will return -1 for most/all emoji characters even if they are known to be wide characters. So we add a check that if -1 is returned for something that is known to be wide, we return 2 in size instead of 0.

On OSs with old libc, the wcwidth will return -1 for most/all emoji characters
even if they are known to be wide characters. So we add a check that if -1
is returned for something that is known to be wide, we return 2 in size instead
of 0.
@garazdawi garazdawi added team:VM Assigned to OTP team VM fix labels Apr 15, 2024
@garazdawi garazdawi self-assigned this Apr 15, 2024
Copy link
Contributor

github-actions bot commented Apr 15, 2024

CT Test Results

    2 files     67 suites   1h 3m 3s ⏱️
1 531 tests 1 287 ✅ 244 💤 0 ❌
1 732 runs  1 440 ✅ 292 💤 0 ❌

Results for commit 0e32395.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@garazdawi garazdawi added the testing currently being tested, tag is used by OTP internal CI label Apr 29, 2024
@garazdawi garazdawi merged commit 961d718 into erlang:master May 3, 2024
17 checks passed
@garazdawi garazdawi deleted the lukas/kernel/fix-tty-wcwidth-not-printable-wide-characters branch May 3, 2024 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant