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

printf: %c prints the first byte of its argument #5827

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

samueltardieu
Copy link
Contributor

Fix #5826

@sylvestre sylvestre merged commit edb77b8 into uutils:main Jan 11, 2024
60 of 61 checks passed
@tertsdiepraam
Copy link
Member

The behaviour is still different from GNU here right? char::from will not just create a byte but it will encode the code point as utf-8. I don't think we can properly fix this until printf operates on bytes instead of a string. We can keep this merged but maybe we should reopen the issue?

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.

printf should print a byte instead of a char
3 participants