ref: 2004b2cb37c69280fcfa128a0083de4c8c1e8ca4
parent: 12b95cb6a2eeca85f6e96c3e28d8e95fc7f9e980
author: cancel <cancel@cancel.fm>
date: Fri Dec 14 00:29:20 EST 2018
Temp fix for libncursesw Need to fix up tool script to use ncursesx6-config
--- a/tool
+++ b/tool
@@ -254,7 +254,7 @@
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.
;;
--- a/tui_main.c
+++ b/tui_main.c
@@ -1725,8 +1725,8 @@
// 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