Browse Source

Fix locale changing

master
cancel 6 years ago
parent
commit
12b95cb6a2
  1. 6
      tui_main.c

6
tui_main.c

@ -1723,8 +1723,10 @@ int main(int argc, char** argv) {
stm_setup(); stm_setup();
// Enable UTF-8 by explicitly initializing our locale before initializing // Enable UTF-8 by explicitly initializing our locale before initializing
// ncurses. // ncurses. Only needed (maybe?) if using libncursesw/wide-chars or UTF-8.
setlocale(LC_ALL, ""); // Using it unguarded will mess up box drawing chars in Linux virtual
// consoles.
// setlocale(LC_ALL, "");
// Initialize ncurses // Initialize ncurses
initscr(); initscr();
// Allow ncurses to control newline translation. Fine to use with any modern // Allow ncurses to control newline translation. Fine to use with any modern

Loading…
Cancel
Save