Skip to content

printf: Make printf operate on bytes instead of strings #6028

Merged
cakebaker merged 3 commits intouutils:mainfrom
RenjiSann:feature/printf-byte
Feb 29, 2024
Merged

printf: Make printf operate on bytes instead of strings #6028
cakebaker merged 3 commits intouutils:mainfrom
RenjiSann:feature/printf-byte

Conversation

@RenjiSann
Copy link
Copy Markdown
Collaborator

Fixes #5826

Reference

❯ /bin/printf %c 🙃 | hexdump          
0000000 00f0                                   
0000001

Before

❯ ./target/debug/printf %c 🙃 | hexdump
0000000 b0c3                                   
0000002

After

❯ ./target/debug/printf %c 🙃 | hexdump 
0000000 00f0                                   
0000001

@RenjiSann
Copy link
Copy Markdown
Collaborator Author

@tertsdiepraam @cakebaker

@github-actions
Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/tail/inotify-dir-recreate (fails in this run but passes in the 'main' branch)

@cakebaker cakebaker merged commit 75b2bfb into uutils:main Feb 29, 2024
@cakebaker
Copy link
Copy Markdown
Contributor

Thanks for your PR :)

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

2 participants