From owner-freebsd-bugs Mon Aug 12 11:20: 8 2002 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 3EE1C37B400 for ; Mon, 12 Aug 2002 11:20:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF47C43E42 for ; Mon, 12 Aug 2002 11:20:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7CIK3JU078997 for ; Mon, 12 Aug 2002 11:20:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7CIK3JI078996; Mon, 12 Aug 2002 11:20:03 -0700 (PDT) Date: Mon, 12 Aug 2002 11:20:03 -0700 (PDT) Message-Id: <200208121820.g7CIK3JI078996@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ruslan Ermilov Subject: Re: bin/30778: libncurses/termcap.c does not handle escaped colons Reply-To: Ruslan Ermilov Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/30778; it has been noted by GNATS. From: Ruslan Ermilov To: "Andrey A. Chernov" Cc: Peter Wemm , bug-followup@FreeBSD.org Subject: Re: bin/30778: libncurses/termcap.c does not handle escaped colons Date: Mon, 12 Aug 2002 21:18:21 +0300 On Mon, Aug 12, 2002 at 09:37:59PM +0400, Andrey A. Chernov wrote: > On Mon, Aug 12, 2002 at 10:30:03 -0700, Ruslan Ermilov wrote: > > > > The colon (`:') is used to delimit capabilities. To include the > > colon as part of the value, it must be escaped. (The wy60 entry ^^^^^^^^^^^^^^ > > has this in its "rs" capability, for example.) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > >From where you get assumption that \: is valid escape sequence? It should > be written as \072 instead. > - by grepping over src/share/termcap/termcap.src (dg460-ansi, wy60, wy60-25, wy60-42, and wy60-43 have these), - by looking over in the contrib/ncurses/ncurses/tinfo/comp_scan.c _nc_trans_string() code, - by running the test with the ncurses' stock read_termcap.c, - by seeing how tic(1) converts colons, - by hearing the following from Thomas Dickey (ncurses maintainer): : ncurses handles the escaped colon : fine, but how it's interpreted by FreeBSD's termcap library is another : matter altogether. - by POLA. I know the termcap(5) mentions that `:' in the value should be written as \072, I just think that not supporting `\:' is a bug, and the above is a compiled list of why I think so. Cheers, -- Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message