diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-10 04:34:27 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-10 04:34:27 +0000 |
commit | cf87db15baa16eefb478d7f96e662a740d718a82 (patch) | |
tree | 73527d8e718e40d398ba4b15da22c2260a457e58 | |
parent | 2f4b8de00f4ff0968ec3018f44bc25c11dd8f30b (diff) |
handle locale being incorrect
-rw-r--r-- | bin/expr/expr.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/expr/expr.c b/bin/expr/expr.c index dcf570bfb23..b15e5fb9241 100644 --- a/bin/expr/expr.c +++ b/bin/expr/expr.c @@ -1,4 +1,4 @@ -/* $NetBSD: expr.c,v 1.3 1995/04/28 23:27:15 jtc Exp $ */ +/* $NetBSD: expr.c,v 1.3.6.1 1996/06/04 20:41:47 cgd Exp $ */ /* * Written by J.T. Conklin <jtc@netbsd.org>. @@ -484,10 +484,7 @@ main(argc, argv) { struct val *vp; - if (!setlocale(LC_ALL, "")) { - fprintf(stderr, - "setlocale failed, continuing with \"C\" locale."); - } + (void) setlocale(LC_ALL, ""); av = argv + 1; nexttoken(); |