From owner-freebsd-bugs@FreeBSD.ORG Wed Sep 17 10:00:41 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC14816A4BF for ; Wed, 17 Sep 2003 10:00:40 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3E2443F75 for ; Wed, 17 Sep 2003 10:00:37 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8HH0bFY066859 for ; Wed, 17 Sep 2003 10:00:37 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8HH0bm8066858; Wed, 17 Sep 2003 10:00:37 -0700 (PDT) (envelope-from gnats) Resent-Date: Wed, 17 Sep 2003 10:00:37 -0700 (PDT) Resent-Message-Id: <200309171700.h8HH0bm8066858@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Rudolf Cejka Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06F2616A4B3 for ; Wed, 17 Sep 2003 09:50:20 -0700 (PDT) Received: from kazi.fit.vutbr.cz (kazi.fit.vutbr.cz [147.229.8.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0037843FAF for ; Wed, 17 Sep 2003 09:50:17 -0700 (PDT) (envelope-from cejkar@fit.vutbr.cz) Received: from kazi.fit.vutbr.cz (localhost [127.0.0.1]) by kazi.fit.vutbr.cz (8.12.10/8.12.9) with ESMTP id h8HGoE4F001161 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 17 Sep 2003 18:50:15 +0200 (CEST) Received: (from cejkar@localhost) by kazi.fit.vutbr.cz (8.12.10/8.12.5/Submit) id h8HGoE2L001160; Wed, 17 Sep 2003 18:50:14 +0200 (CEST) Message-Id: <200309171650.h8HGoE2L001160@kazi.fit.vutbr.cz> Date: Wed, 17 Sep 2003 18:50:14 +0200 (CEST) From: Rudolf Cejka To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: conf/56956: xterm-ic from termcap is not included in termcap.db X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Rudolf Cejka List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2003 17:00:41 -0000 >Number: 56956 >Category: conf >Synopsis: xterm-ic from termcap is not included in termcap.db >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 17 10:00:37 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Rudolf Cejka >Release: FreeBSD 4.8-STABLE i386 >Organization: FIT, Brno University of Technology, Czech Republic >Environment: >Description: If you look in termcap (4.x and/or 5.x - it seems that it is everywhere) around xterm-ic record, you see: # comment \ xterm-ic ... \ ... Unfortunatelly, cap_mkdb (specifically cgetnext() from libc) interprets it just as one big comment, because "\" has bigger priority that "#", so "\" is applied before "#". It means that xterm-ic is not compiled into termcap.db database. >How-To-Repeat: >Fix: The first variant: Just remove "\" from the end of comment line: --- termcap.orig Tue Aug 12 15:32:35 2003 +++ termcap Wed Sep 17 17:44:33 2003 @@ -2996,7 +2996,7 @@ :tc=xterm-basic: # # vi may work better with this entry, because vi doesn't use insert mode much. -# |xterm-ic|xterm-vi|xterm with insert character instead of insert mode:\ +# |xterm-ic|xterm-vi|xterm with insert character instead of insert mode: xterm-ic|xterm-vi|xterm with insert char:\ :im@:ei@:mi@:ic=\E[@:IC=\E[%d@:tc=xterm: # The second variant: Remove all line, because I do not know why it is here: --- termcap.orig Tue Aug 12 15:32:35 2003 +++ termcap Wed Sep 17 17:45:06 2003 @@ -2996,7 +2996,6 @@ :tc=xterm-basic: # # vi may work better with this entry, because vi doesn't use insert mode much. -# |xterm-ic|xterm-vi|xterm with insert character instead of insert mode:\ xterm-ic|xterm-vi|xterm with insert char:\ :im@:ei@:mi@:ic=\E[@:IC=\E[%d@:tc=xterm: # Or the third possible fix - change the logic in src/lib/libc/gen/getcap.c. I do not know if it is a bug, or a feature :o) >Release-Note: >Audit-Trail: >Unformatted: