1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

printf: Improve support for printing multi-byte values of characters

This commit is contained in:
Sylvestre Ledru 2025-01-01 17:24:53 +01:00 committed by Justin Tracey
parent d99b7b31a6
commit 8ff0db1db9
No known key found for this signature in database
GPG key ID: 62B84F5ABDDDCE54
2 changed files with 22 additions and 1 deletions

View file

@ -1385,3 +1385,13 @@ fn float_arg_with_whitespace() {
.fails()
.stderr_contains("expected a numeric value");
}
#[test]
fn mb_input() {
for format in ["\"á", "\'á"] {
new_ucmd!()
.args(&["%04x\n", format])
.succeeds()
.stdout_only("00e1\n");
}
}