diff options
author | June McEnroe <june@causal.agency> | 2019-02-22 14:11:50 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-02-22 14:11:50 -0500 |
commit | e20c64d5d72e341abf8dc3cb38d7cfec371faafc (patch) | |
tree | 96890088e4645416c058ab3504feb63c1b16d9da /chat.c | |
parent | Replace "view" with "window" (diff) | |
download | catgirl-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.c | 3 |
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) { |