ref: 12b95cb6a2eeca85f6e96c3e28d8e95fc7f9e980
parent: 2df17387e58f281cc50d16b6184e3321e6ef9d53
author: cancel <cancel@cancel.fm>
date: Thu Dec 13 23:53:42 EST 2018
Fix locale changing
--- a/tui_main.c
+++ b/tui_main.c
@@ -1723,8 +1723,10 @@
stm_setup();
// Enable UTF-8 by explicitly initializing our locale before initializing
- // ncurses.
- setlocale(LC_ALL, "");
+ // 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, "");
// Initialize ncurses
initscr();
// Allow ncurses to control newline translation. Fine to use with any modern