Re: [PATCH] If using wide nscurses, use wide tinfo (tinfow)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 18, 2017 at 06:10:09PM +0200, Stanislav Brabec wrote:
> util-linux checks for libtinfo, even if libncursesw is used. It can cause
> ugly crashes inside ncurses, e. g. in cfdisk.

Hmm... this i is first time I see this problem. Ah yes, it seems we
need another permutation for the wonderful ncurses world :-)

> To prevent these crashes, never link non-wide libtinfo together with
> libncursesw.
> 
> This change can cause non-detection of tinfo on some systems with
> ncursesw but without tinfow. It would be easy to fix, but I am not sure
> whether to check for a combination that can cause crash.

Unfortunately on Fedora we have two ncurses libs (wide/nonwide), but
only one tinfo lib. So, the patch without fallback to tinfo is
useless.

I've committed a little different solution. I've added UL_TINFO_CHECK()
and call it from configure with "tinfow" and fallback to "tinfo" if
not found the widechar version or for non-widechar ncurses.

Please, test it for your environment. I'd like to release -rc1 ASAP.
Thanks!

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux