Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Aug 2002 11:20:03 -0700 (PDT)
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/30778: libncurses/termcap.c does not handle escaped colons
Message-ID:  <200208121820.g7CIK3JI078996@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/30778; it has been noted by GNATS.

From: Ruslan Ermilov <ru@FreeBSD.org>
To: "Andrey A. Chernov" <ache@nagual.pp.ru>
Cc: Peter Wemm <peter@FreeBSD.org>, 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208121820.g7CIK3JI078996>