$ S_COLORS=never pidstat 4 3 > nocol.log
still has the bad chars

Further
$ S_COLORS=always pidstat 4 3 > withcol.log
Has what you'd expect from colors like "^[[0m^[[32;22m"

So detection is correct - the redirect runs in the no-color mode (unless
forced by the environment variable), but the non colorized mode is the
one that adds these broken extra "00" bytes.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1716113

Title:
  pidstat outputs to log with invalid characters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sysstat/+bug/1716113/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to