bugGNU Screen - Bugs: bug #27917, tgetent emulation result on HPUX...


bug #27917: tgetent emulation result on HPUX 11.2x not handled correctly

Submitted by:  None
Submitted on:  Mon 02 Nov 2009 07:26:35 PM UTC  
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 4.0.3
Fixed Release: NonePlanned Release: None
Work Required: None

Add a New Comment(Rich Markup)

You are not logged in

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


Mon 02 Nov 2009 07:26:35 PM UTC, original submission:

On HPUX 11.2x tgetent returns 0 (OK) on success and -1 (ERR) on failure. The code appears to be assuming the Linux implementation of 1 on success and all other values mean failure.

The following patch fixes this issue for HPUX 11.2x, I believe it would also work for HPUX 10.x.

      • screen-4.0.3/termcap.c Mon Sep 8 10:45:36 2003

--- screen-4.0.3.x/termcap.c Mon Nov 2 13:59:44 2009

      • 1332,1341 ****

--- 1332,1344 ----
r = tgetent(bp, name);
+ #ifdef hpux
+ r = (r == 0) ? 1 : -1;
+ #endif
return r;



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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


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

Only logged-in users can vote.


Please enter the title of George Orwell's famous dystopian book (it's a date):



No Changes Have Been Made to This Item

Back to the top

Powered by Savane 3.1-cleanup1