catpoint

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

commit 94a0e5efc331e32b15fec8032bf4d828b8b97783
parent 9c863cd38ad1d01c2d745fe3c63e7e86f08d4c40
Author: Lazaros Koromilas <lostd@2f30.org>
Date:   Sat,  9 Feb 2019 20:14:28 +0200

Revert "Remove curses-remnants"

This reverts commit 47fdb684c29d1771df2e1d59b0204bc7865c699b.

Diffstat:
Mcatpoint.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/catpoint.c b/catpoint.c @@ -1,9 +1,11 @@ /* See LICENSE file for copyright and license details. */ +#include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h> #include <err.h> #include <fcntl.h> +#include <locale.h> #include <stdio.h> #include <stdlib.h> #include <termios.h> @@ -27,6 +29,8 @@ main(int argc, char *argv[]) argv++; argc--; + setlocale(LC_ALL, ""); + s = malloc(argc * sizeof(struct slide)); if (s == NULL) err(1, "malloc");