summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-12 00:43:00 -0500
committerJune McEnroe <june@causal.agency>2019-02-12 00:43:00 -0500
commite050b01394f85779fd1403f5938b37fa53aa974c (patch)
tree6b4f367452743771852d34bbd8a77ccaf36c24cb /bin
parentInstall html with -C (diff)
downloadsrc-e050b01394f85779fd1403f5938b37fa53aa974c.tar.gz
src-e050b01394f85779fd1403f5938b37fa53aa974c.zip
Call setlocale in hi
Diffstat (limited to '')
-rw-r--r--bin/hi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/hi.c b/bin/hi.c
index 8a254ce9..e10d120a 100644
--- a/bin/hi.c
+++ b/bin/hi.c
@@ -17,6 +17,7 @@
 
 #include <assert.h>
 #include <err.h>
+#include <locale.h>
 #include <regex.h>
 #include <stdbool.h>
 #include <stdio.h>
@@ -588,6 +589,8 @@ static bool findOption(enum Option *opt, const char *key) {
 }
 
 int main(int argc, char *argv[]) {
+	setlocale(LC_CTYPE, "");
+
 	const char *name = NULL;
 	struct Language lang = {0};
 	struct Format format = Formats[0];