Skip to content

Commit

Permalink
Fix #8: set loale post ncurses init
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Apr 14, 2017
1 parent 971895e commit eb05306
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nnn.c
Expand Up @@ -477,6 +477,9 @@ initcurses(void)
keypad(stdscr, TRUE);
curs_set(FALSE); /* Hide cursor */
timeout(1000); /* One second */

/* Set locale */
setlocale(LC_ALL, "");
}

static void
Expand Down Expand Up @@ -1654,8 +1657,6 @@ main(int argc, char *argv[])
exit(1);
}

/* Set locale before curses setup */
setlocale(LC_ALL, "");
initcurses();
browse(ipath, ifilter);
exitcurses();
Expand Down

0 comments on commit eb05306

Please sign in to comment.