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

uniq: fix multibyte input

Should fix tests/uniq/uniq.pl
This commit is contained in:
Sylvestre Ledru 2025-01-01 13:04:04 +01:00
parent 805754b4f8
commit 1e23a3fa8d
2 changed files with 44 additions and 33 deletions

View file

@ -1172,3 +1172,13 @@ fn gnu_tests() {
}
}
}
#[test]
fn test_stdin_w1_multibyte() {
let input = "à\ná\n";
new_ucmd!()
.args(&["-w1"])
.pipe_in(input)
.run()
.stdout_is("à\ná\n");
}