mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
printf: Improve support for printing multi-byte values of characters
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user