summaryrefslogtreecommitdiff
path: root/bin/ksh/main.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2016-10-17 17:44:48 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2016-10-17 17:44:48 +0000
commit7f04622ec006b63c85d9df385e710e60103025e9 (patch)
tree53e27522eaf400869b8da0504b996b7ff95890c6 /bin/ksh/main.c
parente61386490fa7a28320b137657136ce4550bfe91c (diff)
No need to inspect LC_CTYPE:
* It was only used in vi input mode. * No functional change in case of set -o vi-show8. * No functional change if LC_CTYPE is set to UTF-8. * More robust for the default of LC_CTYPE=C on a UTF-8 xterm. Behaviour changes for the combination LC_CTYPE=C with set +o vi-show8 on non-UTF-8 terminals, but that combination is useless and dangerous with or without this patch. If you want to edit individual raw non-ASCII non-UTF-8 bytes on the shell command line, always use set -o vi-show8. (Besides, i doubt that you actually want to do that; better use a real hex editor in the first place.) OK czarkoff@.
Diffstat (limited to 'bin/ksh/main.c')
-rw-r--r--bin/ksh/main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/ksh/main.c b/bin/ksh/main.c
index 6b0d28ccf40..4e469188254 100644
--- a/bin/ksh/main.c
+++ b/bin/ksh/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.81 2016/10/11 19:52:54 schwarze Exp $ */
+/* $OpenBSD: main.c,v 1.82 2016/10/17 17:44:47 schwarze Exp $ */
/*
* startup, main loop, environments and error handling
@@ -8,7 +8,6 @@
#include <errno.h>
#include <fcntl.h>
-#include <locale.h>
#include <paths.h>
#include <pwd.h>
#include <stdio.h>
@@ -153,8 +152,6 @@ main(int argc, char *argv[])
kshname = argv[0];
- setlocale(LC_CTYPE, "");
-
if (pledge("stdio rpath wpath cpath fattr flock getpw proc exec tty",
NULL) == -1) {
perror("pledge");