Use libncursesw for internationalization

Update README on dependencies
This commit is contained in:
Arun Prakash Jana 2017-04-16 13:05:08 +05:30
parent 2d7b575c82
commit 5b68fa1a67
No known key found for this signature in database
GPG key ID: A75979F35C080412
4 changed files with 6 additions and 6 deletions

View file

@ -4,7 +4,7 @@ PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man MANPREFIX = $(PREFIX)/share/man
CFLAGS += -O3 -march=native -Wall -Wextra -Wno-unused-parameter CFLAGS += -O3 -march=native -Wall -Wextra -Wno-unused-parameter
LDLIBS = -lcurses LDLIBS = -lncursesw
DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE
LOCALCONFIG = config.h LOCALCONFIG = config.h

View file

@ -4,7 +4,7 @@ PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man MANPREFIX = $(PREFIX)/share/man
CFLAGS += -O2 -Wall -Wextra -Wno-unused-parameter CFLAGS += -O2 -Wall -Wextra -Wno-unused-parameter
LDLIBS = -lcurses LDLIBS = -lncursesw
DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE
LOCALCONFIG = config.h LOCALCONFIG = config.h

View file

@ -139,7 +139,7 @@ nnn vs. ranger memory usage while viewing a directory with 10,178 files, sorted
### Installation ### Installation
nnn needs a curses implementation and standard libc. nnn needs libncursesw on Linux (or ncurses on OS X) and standard libc.
- If you are using Homebrew, run: - If you are using Homebrew, run:

6
nnn.c
View file

@ -477,9 +477,6 @@ 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
@ -1674,6 +1671,9 @@ main(int argc, char *argv[])
exit(1); exit(1);
} }
/* Set locale */
setlocale(LC_ALL, "");
initcurses(); initcurses();
browse(ipath, ifilter); browse(ipath, ifilter);
exitcurses(); exitcurses();