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

Merge pull request #7046 from sylvestre/uniqu

uniq: fix multibyte input
This commit is contained in:
Daniel Hofstetter 2025-01-01 14:53:03 +01:00 committed by GitHub
commit a049427e88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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");
}