about summary refs log tree commit diff
path: root/chat.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-22 14:11:50 -0500
committerJune McEnroe <june@causal.agency>2019-02-22 14:11:50 -0500
commite20c64d5d72e341abf8dc3cb38d7cfec371faafc (patch)
tree96890088e4645416c058ab3504feb63c1b16d9da /chat.c
parentReplace "view" with "window" (diff)
downloadcatgirl-e20c64d5d72e341abf8dc3cb38d7cfec371faafc.tar.gz
catgirl-e20c64d5d72e341abf8dc3cb38d7cfec371faafc.zip
Reorganize UI code for the umpteenth time
It's actually in a good state now, I think.
Diffstat (limited to '')
-rw-r--r--chat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/chat.c b/chat.c
index f391fb2..2ec20bd 100644
--- a/chat.c
+++ b/chat.c
@@ -17,6 +17,7 @@
 #define _WITH_GETLINE
 
 #include <err.h>
+#include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -49,6 +50,8 @@ static char *prompt(const char *prompt) {
 }
 
 int main(int argc, char *argv[]) {
+	setlocale(LC_CTYPE, "");
+
 	int opt;
 	while (0 < (opt = getopt(argc, argv, "NW:a:h:j:l:n:p:r:u:vw:"))) {
 		switch (opt) {