Red Hat Bugzilla – Bug 672127
coloring of help message should be disabled if stdOUT is not a tty.
Last modified: 2011-02-14 10:25:06 EST
Created attachment 474888 [details]
A patch fix the issue.
Description of problem:
It is hard to read the output of "sosreport -l" if it is stored
to file or is connected to the other command like "less" because
escape characters for coloring are included in the output.
Version-Release number of selected component (if applicable):
The laster from svn repository.
sosrepor -l > /tmp/foo
Steps to Reproduce:
Escape characters for coloring are included.
Escape characters for coloing are not included only when
the stdout of sosreport is not connected to a terminal.
Thank you for your contribution!
I'd rather not modify __cmdLineOpts__ outside of command-line options, but reused sys.stdout.isatty().
Fixed upstream through https://fedorahosted.org/sos/changeset/1084
Pierre Carrier, Technical Support Engineer
Production Support, EMEA office
Global Support Services
Red Hat, Inc.
Thank you for fixing.
Just a question. Why "Component" field for this bugzilla entry is changed from sos to 0xFFFF?
Sorry, that's a browser-side bug.
Oh, you should file a bug! What package is it??