Skip to content

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

Merged
sylvestre merged 1 commit intouutils:mainfrom
samueltardieu:issue-5826
Jan 11, 2024
Merged

printf: %c prints the first byte of its argument#5827
sylvestre merged 1 commit intouutils:mainfrom
samueltardieu:issue-5826

Conversation

@samueltardieu
Copy link
Copy Markdown
Contributor

Fix #5826

@sylvestre sylvestre merged commit edb77b8 into uutils:main Jan 11, 2024
@tertsdiepraam
Copy link
Copy Markdown
Collaborator

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