From housel@cx281057-a.irvn1.occa.home.com Thu Oct  7 23:22:23 1999
Return-Path: <housel@cx281057-a.irvn1.occa.home.com>
Received: from cx281057-a.irvn1.occa.home.com (cx281057-a.irvn1.occa.home.com [24.5.32.114])
	by hub.freebsd.org (Postfix) with ESMTP id 2B7C11583C
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  7 Oct 1999 23:22:13 -0700 (PDT)
	(envelope-from housel@cx281057-a.irvn1.occa.home.com)
Received: (from housel@localhost)
	by cx281057-a.irvn1.occa.home.com (8.9.3/8.9.3) id XAA91457;
	Thu, 7 Oct 1999 23:20:43 -0700 (PDT)
	(envelope-from housel)
Message-Id: <199910080620.XAA91457@cx281057-a.irvn1.occa.home.com>
Date: Thu, 7 Oct 1999 23:20:43 -0700 (PDT)
From: "Peter S. Housel" <housel@cx281057-a.irvn1.occa.home.com>
Reply-To: housel@cx281057-a.irvn1.occa.home.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: tgetstr() inserting termlib "%pn" into output
X-Send-Pr-Version: 3.2

>Number:         14202
>Category:       bin
>Synopsis:       tgetstr() inserting termlib "%pn" into output
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct  7 23:30:00 PDT 1999
>Closed-Date:    Thu Nov 25 14:23:25 PST 1999
>Last-Modified:  Thu Nov 25 14:23:45 PST 1999
>Originator:     Peter S. Housel
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
None
>Environment:

4.0-current updated 1999.10.6

>Description:

The tgetstr() function is adding %p tags not originally present in the 
termcap file into its output format.  Gnu Emacs (the emacs20 port) interprets
these termcap strings itself, and is therfore not able to interpret them
correctly, resulting in incorrect cursor motion and such.

>How-To-Repeat:

Build emacs20 port and run emacs; note incorrect cursor positioning.

Build tc3.c from the TEST directory of libtermcap; note %p1 etc. tags
in the output.

>Fix:

Emacs can be patched to handle %p and work around this problem, but
it shouldn't have to be.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jseger 
State-Changed-When: Thu Nov 25 14:23:25 PST 1999 
State-Changed-Why:  
Emacs fixed to accomadate this. 
>Unformatted:
