Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 232994 - Do not colourize printouts when redirected
Summary: Do not colourize printouts when redirected
Alias: None
Product: Fedora
Classification: Fedora
Component: gstreamer
Version: rawhide
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Adam Jackson
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2007-03-19 19:54 UTC by Pete Zaitcev
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-04-11 14:58:55 UTC

Attachments (Terms of Use)

Description Pete Zaitcev 2007-03-19 19:54:40 UTC
Description of problem:

When output of Totem is redirected, it retains colored marks like "WARN",
which makes them hard to read.

Version-Release number of selected component (if applicable):


How reproducible:

100%, but you need a way to trigger the output from the library.

Steps to Reproduce:
1. Run this:
   GST_DEBUG=*:2 totem dvd://2 > 2>&1 </dev/null
2. Do something to produce "WARN"
   (in case of DVD, perhaps nothing is needed, there's a ton of
   "Queue is bigger than 20Mbytes"
3. Open the file in a text editor

Actual results:

File is full of color-changing escapes

Expected results:

A readable trace

Additional info:

This should be similar to behaviour of ls(1). The standard way to
determine if the descriptor is interactive is isatty(3). If you
use the standard I/O library, you can get the current
file descriptor with fileno(3).

Comment 1 Bastien Nocera 2007-04-11 14:58:55 UTC
This can already be achieved with "export GST_DEBUG_NO_COLOR=1".

The point of the colourised output is to be able to separate different types of
warnings and errors easily, and you can read the file with all its colours using
"less -R".

I would advise you to file a bug upstream against GStreamer
( if you feel strongly
about this.

Note You need to log in before you can comment on or make changes to this bug.