summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index 870d104..026f0e7 100644
--- a/main.c
+++ b/main.c
@@ -3,9 +3,12 @@
#include "rc.h"
#include <errno.h>
+#include <locale.h>
#include "input.h"
+extern char **environ;
+
bool dashdee, dashee, dasheye, dashell, dashen;
bool dashpee, dashoh, dashess, dashvee, dashex;
bool interactive;
@@ -120,6 +123,8 @@ quitopts:
close(fd);
}
}
+ environ = makeenv();
+ setlocale(LC_CTYPE, "");
if (dashsee[0] != NULL || dashess) { /* input from -c or -s? */
if (*argv != NULL)