Introduction
Introduction Statistics Contact Development Disclaimer Help
index: setlocale() because we use multibyte functions - stagit-gopher - static …
git clone git://git.codemadness.org/stagit-gopher
Log
Files
Refs
README
LICENSE
---
commit bbd27612e48b51f37e4e70566ded2007fe48724f
parent 9731204482dd309c3de1a1a5055d838f1ec6f899
Author: Hiltjo Posthuma <[email protected]>
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 <err.h>
#include <errno.h>
#include <inttypes.h>
+#include <locale.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
@@ -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++) {
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.