diff options
| author | 2017-04-16 13:05:08 +0530 | |
|---|---|---|
| committer | 2017-04-16 13:07:29 +0530 | |
| commit | 5b68fa1a67b01fc159bdc357babc1c33e98bc992 (patch) | |
| tree | ef3cf1e4f2f8acfed0c0fde49446a1ab52136172 | |
| parent | 2d7b575c8257fbc25f9959701ebebeb26f100036 (diff) | |
| download | nnn-5b68fa1a67b01fc159bdc357babc1c33e98bc992.tar.gz | |
Use libncursesw for internationalization
Update README on dependencies
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | Makefile.generic | 2 | ||||
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | nnn.c | 6 |
4 files changed, 6 insertions, 6 deletions
@@ -4,7 +4,7 @@ PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man 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 LOCALCONFIG = config.h diff --git a/Makefile.generic b/Makefile.generic index eed4b45..488675a 100644 --- a/Makefile.generic +++ b/Makefile.generic @@ -4,7 +4,7 @@ PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man CFLAGS += -O2 -Wall -Wextra -Wno-unused-parameter -LDLIBS = -lcurses +LDLIBS = -lncursesw DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE LOCALCONFIG = config.h @@ -139,7 +139,7 @@ nnn vs. ranger memory usage while viewing a directory with 10,178 files, sorted ### 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: @@ -477,9 +477,6 @@ initcurses(void) keypad(stdscr, TRUE); curs_set(FALSE); /* Hide cursor */ timeout(1000); /* One second */ - - /* Set locale */ - setlocale(LC_ALL, ""); } static void @@ -1674,6 +1671,9 @@ main(int argc, char *argv[]) exit(1); } + /* Set locale */ + setlocale(LC_ALL, ""); + initcurses(); browse(ipath, ifilter); exitcurses(); |