diff options
author | 2015-10-26 16:27:04 +0000 | |
---|---|---|
committer | 2015-10-26 16:27:04 +0000 | |
commit | 9abb453fef52149f4b7fb9f2eab78f7ae735f4dc (patch) | |
tree | 52d39a8714ec29920942722fdaeffc99e4efd654 /bin/csh/csh.c | |
parent | Remove TMPDIR support, it is not really useful in crontab. (diff) | |
download | wireguard-openbsd-9abb453fef52149f4b7fb9f2eab78f7ae735f4dc.tar.xz wireguard-openbsd-9abb453fef52149f4b7fb9f2eab78f7ae735f4dc.zip |
Clean up cruft made visible by the NLS unifdefing:
* remove setlocale() calls
* remove write-only variable AsciiOnly
* remove now unused string constants STRLANG, STRLC_CTYPE
* remove hardcoded support for ISO8859-1
ok millert@
Diffstat (limited to 'bin/csh/csh.c')
-rw-r--r-- | bin/csh/csh.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/bin/csh/csh.c b/bin/csh/csh.c index e04983c699e..e6852ed4032 100644 --- a/bin/csh/csh.c +++ b/bin/csh/csh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: csh.c,v 1.31 2015/10/26 15:01:15 naddy Exp $ */ +/* $OpenBSD: csh.c,v 1.32 2015/10/26 16:27:04 naddy Exp $ */ /* $NetBSD: csh.c,v 1.14 1995/04/29 23:21:28 mycroft Exp $ */ /*- @@ -155,22 +155,10 @@ main(int argc, char *argv[]) if (loginsh) (void) time(&chktim); - AsciiOnly = 1; - - (void) setlocale(LC_ALL, ""); - if (pledge("stdio rpath wpath cpath fattr getpw proc exec tty", NULL) == -1) perror("pledge"); - { - int k; - - for (k = 0200; k <= 0377 && !Isprint(k); k++) - continue; - AsciiOnly = k > 0377; - } - /* * Move the descriptors to safe places. The variable didfds is 0 while we * have only FSH* to work with. When didfds is true, we have 0,1,2 and @@ -1247,10 +1235,6 @@ vis_fputc(int ch, FILE *fp) if (ch & QUOTE) return fputc(ch & TRIM, fp); - /* - * XXX: When we are in AsciiOnly we want all characters >= 0200 to - * be encoded, but currently there is no way in vis to do that. - */ (void) vis(uenc, ch & TRIM, VIS_NOSLASH, 0); return fputs(uenc, fp); } |