coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

`tac` cannot handle seperators that are not UTF-8.

Open collinfunk opened this issue 1 month ago • 1 comments

Using uutils built from commit f6d581fc48027528a89e58236a66475aca4e3c80:

$ LC_ALL=en_US.iso8859-1 tac --separator=$(printf '\xe9') < /dev/null
error: invalid UTF-8 was detected in one or more arguments

For more information, try '--help'.

collinfunk avatar Nov 28 '25 00:11 collinfunk

this is not specific to tac. Same for other tools as well, e.g.

$ LC_ALL=en_US.iso8859-1 ./target/debug/coreutils more --pattern=$(printf '\xe9')
error: invalid UTF-8 was detected in one or more arguments

For more information, try '--help'.

martinkunkel2 avatar Dec 04 '25 19:12 martinkunkel2