about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-06 21:49:23 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-11-06 21:49:23 -0700
commita8668eaf9f3a42dfde3b99f8f600dcf5f85ef419 (patch)
tree5aa6321917c881a7541517edabd48a5a743a4564 /src
parent8d1e5f647509b14c79b848d3b2c88814ddd0be35 (diff)
downloadteliva-a8668eaf9f3a42dfde3b99f8f600dcf5f85ef419.tar.gz
game of life
This required me to figure out some unicode-related nuances, but no new
primitives.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile2
-rw-r--r--src/lua.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 36bb294..c88fb28 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -97,7 +97,7 @@ generic:
 	$(MAKE) all MYCFLAGS=
 
 linux:
-	$(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lncurses"
+	$(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lncursesw"
 
 macosx:
 	$(MAKE) all MYCFLAGS=-DLUA_USE_LINUX
diff --git a/src/lua.c b/src/lua.c
index b92204f..8d57a94 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -5,6 +5,7 @@
 */
 
 
+#include <locale.h>
 #include <ncurses.h>
 #include <signal.h>
 #include <stdio.h>
@@ -402,6 +403,7 @@ int main (int argc, char **argv) {
     l_message(argv[0], "cannot create state: not enough memory");
     return EXIT_FAILURE;
   }
+  setlocale(LC_ALL, "");
   initscr();
   start_color();
   draw_menu(L);