FindCurses: use formw in wide mode
libform comes in both 8-bit and wide-character variants, just like ncurses. In wide mode, we need to use libformw, both to get wide-character support in libform and to avoid dragging in 8-bit ncurses.
Without this patch, I get:
[schwarzgerat](0) $ ldd outcurses-demo | egrep ncurses\|form
libncursesw.so.6 => /lib/x86_64-linux-gnu/libncursesw.so.6 (0x00007fe568097000)
libncurses.so.6 => /lib/x86_64-linux-gnu/libncurses.so.6 (0x00007fe567e65000)
libform.so.6 => /usr/lib/x86_64-linux-gnu/libform.so.6 (0x00007f2f6f03c000)
[schwarzgerat](0) $
with it, I get:
[schwarzgerat](0) $ ldd outcurses-demo | egrep ncurses\|form
libncursesw.so.6 => /lib/x86_64-linux-gnu/libncursesw.so.6 (0x00007f581b358000)
libformw.so.6 => /usr/lib/x86_64-linux-gnu/libformw.so.6 (0x00007f581b315000)
[schwarzgerat](0) $
Fixes: #19883 (closed)
Topic-rename: FindCurses-formw
Edited by Brad King