summaryrefslogtreecommitdiffstats
path: root/usr.bin/sed/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/sed/main.c')
-rw-r--r--usr.bin/sed/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/sed/main.c b/usr.bin/sed/main.c
index 7a41bdb..dbea504 100644
--- a/usr.bin/sed/main.c
+++ b/usr.bin/sed/main.c
@@ -47,9 +47,9 @@ static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/3/94";
#include <sys/types.h>
-#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
+#include <locale.h>
#include <regex.h>
#include <stddef.h>
#include <stdio.h>
@@ -109,6 +109,8 @@ main(argc, argv)
{
int c, fflag;
+ (void) setlocale(LC_ALL, "");
+
fflag = 0;
while ((c = getopt(argc, argv, "ae:f:n")) != EOF)
switch (c) {
OpenPOWER on IntegriCloud