mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
printf: %c prints the first byte of its argument
This commit is contained in:
parent
0071442cba
commit
7d32e49fb9
2 changed files with 6 additions and 1 deletions
|
@ -639,3 +639,8 @@ fn partial_char() {
|
|||
"printf: warning: bc: character(s) following character constant have been ignored\n",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn char_as_byte() {
|
||||
new_ucmd!().args(&["%c", "🙃"]).succeeds().stdout_only("ð");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue