Линковать с ncursesw (это с некоторой вероятностью случится само собой, если ncurses были собраны с --enable-widec). Кроме этого, чтобы оно действительно работало с юникодом, там обязательно нужно вызвать setlocale().
Нет, не заработало... линковал с ncursew5-config --cflags --libs, вызывал setlocale(LC_ALL, "ru_RU.UTF-8") - все равно результат тот же. Закорючки. Короче, как я понимаю, все знают, что ncurses поддерживает Unicode, но никто не знает, как именно.
Блин, что характерно - тот же MidnightCommander, собранный с ncurses и без s-lang'а, а также ncmpc - пашут, причем неплохо. Только, как я успел заметить, там все делается каким-то хитрым методом... Что-то такое из разряда плясок с шаманским бубном.
Миднайт-командиру, похоже, поддержка utf-8 не сразу тоже далась:
debian/changelog: * Mode display bug fixed. Patch added to 50_utf8-more.patch. Closes: #415097
debian/changelog: (Shift+enter or Ctrl-q+enter). Patch added to 50_utf8-more.patch
debian/changelog: * added 52_utf8-8bits-slang2.patch. Closes: #359016, #378786
debian/changelog: * added 55_mc-utf8-look-and-feel.patch : nicer look and feel
debian/changelog: * Patched the UTF8 patch to allow compiling mc without UTF8. Closes: #367187
debian/changelog: * in 50_utf8-more.patch added a small patch for a problem in the status
debian/changelog: line with UTF-8 locales. Closes: #360427
debian/changelog: * mc with UTF-8 support upload. Closes: #354691, #309398, #126077, #242194
debian/changelog: * added Ubuntu UTF-8 patches: 48_utf8-slang2.patch
debian/changelog: * removed 27_menu-generation.patch because of UTF-8 problems
debian/changelog: * convert help and hint files to UTF-8 in the Debian makefile
Видимо, не всё там прямолинейно, патчи какие-то, к тому же он по умолчанию как-то не стремится использовать ncurses.