mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tail: enable non-utf8 paths
This commit is contained in:
parent
dc34e89d50
commit
f6edea2d05
3 changed files with 15 additions and 26 deletions
|
@ -4768,7 +4768,6 @@ fn test_obsolete_encoding_unix() {
|
|||
|
||||
let scene = TestScenario::new(util_name!());
|
||||
let invalid_utf8_arg = OsStr::from_bytes(&[b'-', INVALID_UTF8, b'b']);
|
||||
let valid_utf8_arg = OsStr::from_bytes(&[b'-', b'b']);
|
||||
|
||||
scene
|
||||
.ucmd()
|
||||
|
@ -4777,13 +4776,6 @@ fn test_obsolete_encoding_unix() {
|
|||
.no_stdout()
|
||||
.stderr_is("tail: bad argument encoding: '-<2D>b'\n")
|
||||
.code_is(1);
|
||||
scene
|
||||
.ucmd()
|
||||
.args(&[valid_utf8_arg, invalid_utf8_arg])
|
||||
.fails()
|
||||
.no_stdout()
|
||||
.stderr_is("tail: bad argument encoding\n")
|
||||
.code_is(1);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -4794,7 +4786,6 @@ fn test_obsolete_encoding_windows() {
|
|||
|
||||
let scene = TestScenario::new(util_name!());
|
||||
let invalid_utf16_arg = OsString::from_wide(&['-' as u16, INVALID_UTF16, 'b' as u16]);
|
||||
let valid_utf16_arg = OsString::from("-b");
|
||||
|
||||
scene
|
||||
.ucmd()
|
||||
|
@ -4803,11 +4794,4 @@ fn test_obsolete_encoding_windows() {
|
|||
.no_stdout()
|
||||
.stderr_is("tail: bad argument encoding: '-<2D>b'\n")
|
||||
.code_is(1);
|
||||
scene
|
||||
.ucmd()
|
||||
.args(&[&valid_utf16_arg, &invalid_utf16_arg])
|
||||
.fails()
|
||||
.no_stdout()
|
||||
.stderr_is("tail: bad argument encoding\n")
|
||||
.code_is(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue