diff options
author | June McEnroe <june@causal.agency> | 2019-02-12 00:43:00 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-02-12 00:43:00 -0500 |
commit | e050b01394f85779fd1403f5938b37fa53aa974c (patch) | |
tree | 6b4f367452743771852d34bbd8a77ccaf36c24cb /bin | |
parent | Install html with -C (diff) | |
download | src-e050b01394f85779fd1403f5938b37fa53aa974c.tar.gz src-e050b01394f85779fd1403f5938b37fa53aa974c.zip |
Call setlocale in hi
Diffstat (limited to 'bin')
-rw-r--r-- | bin/hi.c | 3 |
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]; |