summaryrefslogtreecommitdiff
path: root/bin/expr/expr.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-10 04:34:27 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-10 04:34:27 +0000
commitcf87db15baa16eefb478d7f96e662a740d718a82 (patch)
tree73527d8e718e40d398ba4b15da22c2260a457e58 /bin/expr/expr.c
parent2f4b8de00f4ff0968ec3018f44bc25c11dd8f30b (diff)
handle locale being incorrect
Diffstat (limited to 'bin/expr/expr.c')
-rw-r--r--bin/expr/expr.c7
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();