summaryrefslogtreecommitdiffstats
path: root/usr.bin/whereis
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-07-15 08:13:56 +0000
committertjr <tjr@FreeBSD.org>2004-07-15 08:13:56 +0000
commita2ba9d448dddaf9ca08b0de9a03349bb8c0dffe6 (patch)
tree1eb0617040fc944e32b7efd22035250f8d1f484e /usr.bin/whereis
parentbcc5104ce1c31b23fe0d246ee43347f0673fcb5c (diff)
downloadFreeBSD-src-a2ba9d448dddaf9ca08b0de9a03349bb8c0dffe6.zip
FreeBSD-src-a2ba9d448dddaf9ca08b0de9a03349bb8c0dffe6.tar.gz
Respect locale settings from the environment.
Diffstat (limited to 'usr.bin/whereis')
-rw-r--r--usr.bin/whereis/whereis.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/whereis/whereis.c b/usr.bin/whereis/whereis.c
index 5b6a83e..84b0e41 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();
OpenPOWER on IntegriCloud