bugDatabase-driven manual pager suite - Bugs: bug #46925, 'man-db' prints bogus characters...

 
 

bug #46925: 'man-db' prints bogus characters and escape codes on some terminals

Submitted by:  Wyatt Ward <wyatt8740>
Submitted on:  Mon 18 Jan 2016 12:27:59 AM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 18 Jan 2016 12:43:02 AM UTC, comment #1: 

Additionally, here's a few lines of the hex dump of my serial log of 'man man'.

(file #36071)

Wyatt Ward <wyatt8740>
Mon 18 Jan 2016 12:27:59 AM UTC, original submission:  

I've got an IBM 3161 ASCII terminal hooked to my linux box. Whenever I open a manpage, I get the letter 'm' before every newline. Additionally, I get the message 'HOST PROG WRONG' on my terminal's message line, due to invalid escape codes.

Piping 'man' through 'less' extenally (I am aware it already acts as the pager by default) fixes this. I logged some output via 'socat' and saw that each line, instead of ending with the CRLF that my terminal wants, was ending with '\033[m\r\n' (ESC, [, m, CR, LF). The problem appears to be related to setting attributes under an assumption of what the terminal needs, without checking in termcap.

Here's a photo of what a typical manpage looks like:
http://i.imgur.com/zz5Xmys.jpg

Wyatt Ward <wyatt8740>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #36071:  logterm.txt added by wyatt8740 (2KiB - text/plain - Attached serial log file of 'man man')
file #36070:  term-mandb.jpg added by wyatt8740 (1MiB - image/jpeg - Photo of my terminal displaying the manpage for 'less'.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by wyatt8740 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-01-18 wyatt8740 Attached File- => Added logterm.txt, #36071
    2016-01-18 wyatt8740 Attached File- => Added term-mandb.jpg, #36070

    Back to the top


    Powered by Savane 3.5