jeaye / ncurses-rs

A low-level ncurses wrapper for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash with ncurses 6.1 with the "wide" feature

ngg opened this issue · comments

In this case the executable is linked to libncursesw.so.6 and to libtinfo.so.6
This did not cause a problem before ncurses 6.1, but now it crashes.
libtinfo.so.6 is coming from pkg_config which is looking for "ncurses" instead of "ncursesw".
Other projects have this same issue as well: vifm/vifm#325 (comment)

I think the proper fix would be to check "ncursesw", "ncursesw5" (and possible "ncursesw6") with pkg_config if the "wide" feature is enabled (and not on macosx) instead of the current ones. In src/ll.rs it should be unnecessary to specify the shared library again.