Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tr: Should handle high input bytes in command-line #6343

Open
BenWiederhake opened this issue May 4, 2024 · 0 comments
Open

tr: Should handle high input bytes in command-line #6343

BenWiederhake opened this issue May 4, 2024 · 0 comments
Labels

Comments

@BenWiederhake
Copy link
Collaborator

$ echo -en '\001amp\0376\0377' | tr $'a\xfe\xffz' "01234" | hd
00000000  01 30 6d 70 31 32                                 |.0mp12|
00000006
$ echo -en '\001amp\0376\0377' | cargo run tr $'a\xfe\xffz' "01234" | hd
error: invalid UTF-8 was detected in one or more arguments

Usage: target/debug/coreutils tr [OPTION]... SET1 [SET2]

For more information, try '--help'.

(Original issue: #6133)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant