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:
commit
a049427e88
2 changed files with 44 additions and 33 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue