diff --git a/tool b/tool index b74396f..0f3500c 100755 --- a/tool +++ b/tool @@ -254,7 +254,7 @@ build_target() { add cc_flags -D_POSIX_C_SOURCE=200809L ;; esac - add libraries -lmenu -lncurses + add libraries -lmenuw -lncursesw # If we wanted wide chars, use -lncursesw on Linux, and still just # -lncurses on Mac. ;; diff --git a/tui_main.c b/tui_main.c index 64dc412..9bbd6d5 100644 --- a/tui_main.c +++ b/tui_main.c @@ -1725,8 +1725,8 @@ int main(int argc, char** argv) { // Enable UTF-8 by explicitly initializing our locale before initializing // ncurses. Only needed (maybe?) if using libncursesw/wide-chars or UTF-8. // Using it unguarded will mess up box drawing chars in Linux virtual - // consoles. - // setlocale(LC_ALL, ""); + // consoles unless using libncursesw. + setlocale(LC_ALL, ""); // Initialize ncurses initscr(); // Allow ncurses to control newline translation. Fine to use with any modern