summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/cksum/cksum.c6
-rw-r--r--usr.sbin/chown/chown.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/usr.bin/cksum/cksum.c b/usr.bin/cksum/cksum.c
index 6f0eadae1ed..5cc9e2a9440 100644
--- a/usr.bin/cksum/cksum.c
+++ b/usr.bin/cksum/cksum.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cksum.c,v 1.2 1996/06/26 05:32:01 deraadt Exp $ */
+/* $OpenBSD: cksum.c,v 1.3 1997/06/27 19:02:54 deraadt Exp $ */
/* $NetBSD: cksum.c,v 1.7 1995/09/02 05:45:18 jtc Exp $ */
/*-
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)cksum.c 8.2 (Berkeley) 4/28/95";
#endif
-static char rcsid[] = "$OpenBSD: cksum.c,v 1.2 1996/06/26 05:32:01 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: cksum.c,v 1.3 1997/06/27 19:02:54 deraadt Exp $";
#endif /* not lint */
#include <sys/cdefs.h>
@@ -77,6 +77,8 @@ main(argc, argv)
void (*pfncn) __P((char *, u_int32_t, u_int32_t));
extern char *__progname;
+ setlocale(LC_ALL, "");
+
if (!strcmp(__progname, "sum")) {
cfncn = csum1;
pfncn = psum1;
diff --git a/usr.sbin/chown/chown.c b/usr.sbin/chown/chown.c
index ae7bab45194..ec3e8ae6842 100644
--- a/usr.sbin/chown/chown.c
+++ b/usr.sbin/chown/chown.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: chown.c,v 1.5 1997/05/31 06:14:29 deraadt Exp $ */
+/* $OpenBSD: chown.c,v 1.6 1997/06/27 19:02:09 deraadt Exp $ */
/*
* Copyright (c) 1988, 1993, 1994
@@ -41,7 +41,7 @@ static char copyright[] =
#ifndef lint
/* from: static char sccsid[] = "@(#)chown.c 8.8 (Berkeley) 4/4/94"; */
-static char *rcsid = "$Id: chown.c,v 1.5 1997/05/31 06:14:29 deraadt Exp $";
+static char *rcsid = "$Id: chown.c,v 1.6 1997/06/27 19:02:09 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -80,6 +80,8 @@ main(argc, argv)
int Hflag, Lflag, Pflag, ch, fts_options, hflag, rval;
char *cp;
+ setlocale(LC_ALL, "");
+
myname = (cp = strrchr(*argv, '/')) ? cp + 1 : *argv;
ischown = myname[2] == 'o';