catpoint

simple slides viewer
git clone git://git.2f30.org/catpoint.git
Log | Files | Refs | README | LICENSE

commit fbad0620d4a9b7d8dc4f3dfdc29de9bd18b27fa3
parent 60fcfddbd530dbb7ddd35cafee283010f69fe12e
Author: sin <sin@2f30.org>
Date:   Sat Jan 18 12:17:10 +0000

Enable wide characters support in catpoint

Diffstat:
Makefile | 2+-
catpoint.c | 3+++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile @@ -1,6 +1,6 @@ # catpoint -LDLIBS = -lcurses +LDLIBS = -lncursesw BIN = catpoint all: $(BIN) diff --git a/catpoint.c b/catpoint.c @@ -7,6 +7,7 @@ #include <err.h> #include <curses.h> #include <fcntl.h> +#include <locale.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -38,6 +39,8 @@ main(int argc, char *argv[]) argv++; argc--; + setlocale(LC_ALL, ""); + s = malloc(argc * sizeof(struct slide)); if (s == NULL) err(1, "malloc");