summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfeed_plain.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sfeed_plain.c b/sfeed_plain.c
index ee836b5..b88a776 100644
--- a/sfeed_plain.c
+++ b/sfeed_plain.c
@@ -1,5 +1,6 @@
#include <ctype.h>
#include <err.h>
+#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -53,6 +54,11 @@ main(int argc, char *argv[])
char *name;
int i;
+ if (pledge("stdio rpath", NULL) == -1)
+ err(1, "pledge");
+
+ setlocale(LC_CTYPE, "");
+
if (pledge(argc == 1 ? "stdio" : "stdio rpath", NULL) == -1)
err(1, "pledge");