1
Fork 0
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:
Peng Zijun 2024-11-28 16:14:16 +08:00 committed by GitHub
parent dea0afb2a5
commit 75de5a0613
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 42 additions and 13 deletions

View file

@ -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("Ł)");
}