*BSD News Article 22903


Return to BSD News archive

Newsgroups: comp.os.386bsd.bugs
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!math.ohio-state.edu!cyber2.cyberstore.ca!nwnexus!deanstoy!dean
From: dean@deanstoy.wa.com
Subject: Termcap fix [FreeBSD]
Keywords: termcap freebsd bug
Organization: None whatsoever!
Date: Wed, 27 Oct 1993 04:14:46 GMT
Message-ID: <CFJFt1.2rJ@deanstoy.wa.com>
Summary: Ill-formed entry -> core dump
Lines: 52

I recently upgraded to FreeBSD Epsilon and after rebuilding emacs, found that
a syntax error had appeared in the new termcap file.  It did not bother vi
but emacs dumped core.  The fix is trivial:

*** termcap.old	Tue Oct 26 21:04:20 1993
--- termcap	Tue Oct 26 20:48:51 1993
***************
*** 2082,2090 ****
          :k1=\E[M:k2=\E[N:k3=\E[O:k4=\E[P:k5=\E[Q:k6=\E[R:\
          :k7=\E[S:k8=\E[T:k9=\E[U:k0=\E[V:k10=\E[V:k11=\E[W:k12=\E[X:\
          :kb=^h:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:eo:sf=\E[S:sr=\E[T:\
!         :mb=\E[5m:md=\E[1m:me=\E[m:\
  cons50|ansil|ansi80x50:\
!         :li#50:tc=cons25:\
  dosansi|ANSI.SYS standard crt:\
          :am:bs:ce=\E[K:cl=\E[2J:cm=\E[%i%d;%dH:co#80:\
          :do=\E[B:li#25:mi:nd=\E[C:\
--- 2082,2092 ----
          :k1=\E[M:k2=\E[N:k3=\E[O:k4=\E[P:k5=\E[Q:k6=\E[R:\
          :k7=\E[S:k8=\E[T:k9=\E[U:k0=\E[V:k10=\E[V:k11=\E[W:k12=\E[X:\
          :kb=^h:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:eo:sf=\E[S:sr=\E[T:\
!         :mb=\E[5m:md=\E[1m:me=\E[m:
! 
  cons50|ansil|ansi80x50:\
!         :li#50:tc=cons25:
! 
  dosansi|ANSI.SYS standard crt:\
          :am:bs:ce=\E[K:cl=\E[2J:cm=\E[%i%d;%dH:co#80:\
          :do=\E[B:li#25:mi:nd=\E[C:\
***************
*** 2092,2098 ****
          :md=\E[1m:mh=\E[m:mb=\E[5m:me=\E[m:\
          :kh=\EG:kb=^h:ku=\EH:kd=\EP:kl=\EK:kr=\EM:\
          :k1=\E;:k2=\E<:k3=\E=:k4=\E>:k5=\E?:\
!         :k6=\E@:k7=\EA:k8=\EB:k9=\EC:k0=\ED:\
  
  # # --------------------------------
  #
--- 2094,2100 ----
          :md=\E[1m:mh=\E[m:mb=\E[5m:me=\E[m:\
          :kh=\EG:kb=^h:ku=\EH:kd=\EP:kl=\EK:kr=\EM:\
          :k1=\E;:k2=\E<:k3=\E=:k4=\E>:k5=\E?:\
!         :k6=\E@:k7=\EA:k8=\EB:k9=\EC:k0=\ED:
  
  # # --------------------------------
  #

-------------------------------------------------------------------------------
#include <standard-disclaimer.h>
Dean M. Phillips                                           dean@deanstoy.wa.com
-- 
Dean M. Phillips    Microsoft free and proud of it!    dean@deanstoy.wa.com