mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
Fix #8: set loale post ncurses init
This commit is contained in:
parent
971895e873
commit
eb053063c2
5
nnn.c
5
nnn.c
|
@ -477,6 +477,9 @@ initcurses(void)
|
||||||
keypad(stdscr, TRUE);
|
keypad(stdscr, TRUE);
|
||||||
curs_set(FALSE); /* Hide cursor */
|
curs_set(FALSE); /* Hide cursor */
|
||||||
timeout(1000); /* One second */
|
timeout(1000); /* One second */
|
||||||
|
|
||||||
|
/* Set locale */
|
||||||
|
setlocale(LC_ALL, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -1654,8 +1657,6 @@ main(int argc, char *argv[])
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set locale before curses setup */
|
|
||||||
setlocale(LC_ALL, "");
|
|
||||||
initcurses();
|
initcurses();
|
||||||
browse(ipath, ifilter);
|
browse(ipath, ifilter);
|
||||||
exitcurses();
|
exitcurses();
|
||||||
|
|
Loading…
Reference in a new issue