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 'chat.c')
-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) {
it/2017/src/bin/day06.rs?id=037c2a4d3ce3db556b5acb971a8a234789d6a179&follow=1'>Day 6, part 2June McEnroe 2020-11-22Day 6June McEnroe 2020-11-22Day 5, part 2June McEnroe 2020-11-22Day 5June McEnroe 2020-11-22Day 4, part 2June McEnroe That ugly sort map though. 2020-11-22Day 4June McEnroe 2020-11-22Day 3, part 2June McEnroe I am super surprised that worked on the first try. 2020-11-22Day 3, clean upJune McEnroe 2020-11-22Day 3June McEnroe This is fucking awful and I'm angry. 2020-11-22Day 2, part 2June McEnroe 2020-11-22Day 2June McEnroe 2020-11-22Day 1, part 2June McEnroe 2020-11-22Day 1June McEnroe 2020-11-22Move to 2016 directoryJune McEnroe