|
From: | Thomas Dickey |
Subject: | Re: [bug] tic -x and use= building blocks |
Date: | Sun, 9 Apr 2006 14:56:59 -0400 (EDT) |
On Sun, 9 Apr 2006, Alain Bench wrote:
On Monday, April 3, 2006 at 21:29:18 +0200, Alain Bench wrote:Some useless (and harmless) data is appended to a compiled terminfo entry which is use=d by another entry, if the later has custom extended or commented out capabilities.Thanks: This precise case is cleaned in Ncurses-5.5-20060408. However there remains a little related dust under the carpet: Garbage is appended to an entry which uses another one, when the later has already been used before, and the using ones declare custom caps. Example test2.src attached, defining 3 entries: - test1 is the sole building block - test2 uses test1 and adds an AX extended cap - test3 uses test1 and adds a BY extended cap Compile with "tic -x test2.src", and "less ~/.terminfo/t/test3" shows an unexpected trace of AX.
hmm - I can see generally what the problem is - will work on it, but it's not a simple one, since really fixing this will require some study of the use-resolution logic. For yesterday's fix, I thought initially that I could discard the changes to the source structure after computing the merge, but found that it wasn't that simple - so I settled for truncating the data on a write. If we're seeing some contamination as you report, then going back to make my initial try work should solve this problem. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |