mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tr: Add ambiguous octal escape warning (#6886)
* tr: Add ambiguous octal escape warning, issue #6821 * tr: Make code cleaner
This commit is contained in:
parent
dea0afb2a5
commit
75de5a0613
2 changed files with 42 additions and 13 deletions
|
@ -1494,9 +1494,7 @@ fn test_multibyte_octal_sequence() {
|
|||
.args(&["-d", r"\501"])
|
||||
.pipe_in("(1Ł)")
|
||||
.succeeds()
|
||||
// TODO
|
||||
// A warning needs to be printed here
|
||||
// See https://github.com/uutils/coreutils/issues/6821
|
||||
.stderr_is("tr: warning: the ambiguous octal escape \\501 is being\n interpreted as the 2-byte sequence \\050, 1\n")
|
||||
.stdout_is("Ł)");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue