From 12b95cb6a2eeca85f6e96c3e28d8e95fc7f9e980 Mon Sep 17 00:00:00 2001 From: cancel Date: Fri, 14 Dec 2018 04:53:42 +0900 Subject: [PATCH] Fix locale changing --- tui_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tui_main.c b/tui_main.c index 3e71be7..64dc412 100644 --- a/tui_main.c +++ b/tui_main.c @@ -1723,8 +1723,10 @@ int main(int argc, char** argv) { 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