Bug 71274

Summary: man emits escape sequences w/o checking $TERM
Product: [Retired] Red Hat Raw Hide Reporter: Kjetil T. Homme <kjetilho>
Component: manAssignee: wdovlrrw <brosenkr>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-08-11 20:00:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kjetil T. Homme 2002-08-11 20:00:04 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020712

Description of problem:
man 1.5j-9 emits escape sequences directly, regardless of how TERM is set.

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


How reproducible:
Always

Steps to Reproduce:
1. TERM=dumb man ls > /tmp/foo
2. od /tmp/foo | head


Actual Results:  /tmp/foo contains escape sequences

Expected Results:  it should be plain text.

man 1.5j-6 also ignores $TERM, but it uses the good old backspace convention to
add bold and underline, which is easily removable using ul(1).


Additional info:

Comment 1 Kjetil T. Homme 2002-10-02 19:43:35 UTC
hurrah!  man-1.5j-11 in Psyche uses the backspace convention!