index: setlocale() because we use multibyte functions - stagit-gopher - A git gopher frontend. (mirror)
git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/
Log
Files
Refs
Tags
README
LICENSE
---
commit bbd27612e48b51f37e4e70566ded2007fe48724f
parent 9731204482dd309c3de1a1a5055d838f1ec6f899
Author: Hiltjo Posthuma 
Date:   Sat, 25 Nov 2017 15:10:31 +0100

index: setlocale() because we use multibyte functions

Diffstat:
  M stagit-gopher-index.c               |       3 +++

1 file changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/stagit-gopher-index.c b/stagit-gopher-index.c
@@ -3,6 +3,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -222,6 +223,8 @@ main(int argc, char *argv[])
         if (pledge("stdio rpath", NULL) == -1)
                 err(1, "pledge");
 
+        setlocale(LC_CTYPE, "");
+
         git_libgit2_init();
 
         for (i = 1; i < argc; i++) {