summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2004-07-15 08:13:56 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2004-07-15 08:13:56 +0000
commit4ff2396545b33d525b5c2748f50951bf619c779f (patch)
tree1eb0617040fc944e32b7efd22035250f8d1f484e
parentbb5faea34f762860f36ec5a42a7b8bee5ca7b875 (diff)
Notes
-rw-r--r--usr.bin/pkill/pkill.c3
-rw-r--r--usr.bin/whereis/whereis.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/usr.bin/pkill/pkill.c b/usr.bin/pkill/pkill.c
index fa17d6e2aa66..3051f95b66da 100644
--- a/usr.bin/pkill/pkill.c
+++ b/usr.bin/pkill/pkill.c
@@ -62,6 +62,7 @@ __FBSDID("$FreeBSD$");
#include <pwd.h>
#include <grp.h>
#include <errno.h>
+#include <locale.h>
#define STATUS_MATCH 0
#define STATUS_NOMATCH 1
@@ -132,6 +133,8 @@ main(int argc, char **argv)
regex_t reg;
regmatch_t regmatch;
+ setlocale(LC_ALL, "");
+
if (strcmp(getprogname(), "pgrep") == 0) {
action = grepact;
pgrep = 1;
diff --git a/usr.bin/whereis/whereis.c b/usr.bin/whereis/whereis.c
index 5b6a83e7d334..84b0e41eb903 100644
--- a/usr.bin/whereis/whereis.c
+++ b/usr.bin/whereis/whereis.c
@@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$");
#include <dirent.h>
#include <err.h>
#include <errno.h>
+#include <locale.h>
#include <regex.h>
#include <stdio.h>
#include <stdlib.h>
@@ -368,6 +369,8 @@ main(int argc, char **argv)
regoff_t rlen;
FILE *p;
+ setlocale(LC_ALL, "");
+
scanopts(argc, argv);
defaults();