summary refs log tree commit diff
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
commitd1d7ebd2073beab604377d7e354a05ea46313a36 (patch)
tree3990d54c8b25c902fed04298e32d27b10a75f84f
parentInstall html with -C (diff)
downloadsrc-d1d7ebd2073beab604377d7e354a05ea46313a36.tar.gz
src-d1d7ebd2073beab604377d7e354a05ea46313a36.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 572276f7..906922c5 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];