From c63c3a56b81ac6abc07f7c5a5060533f1c43bc1b Mon Sep 17 00:00:00 2001 From: tjr Date: Thu, 15 Jul 2004 08:54:41 +0000 Subject: Respect locale settings from the environment. --- usr.bin/du/du.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr.bin/du') diff --git a/usr.bin/du/du.c b/usr.bin/du/du.c index 6b85e17..b86c180 100644 --- a/usr.bin/du/du.c +++ b/usr.bin/du/du.c @@ -57,6 +57,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include @@ -89,6 +90,8 @@ main(int argc, char *argv[]) char **save; static char dot[] = "."; + setlocale(LC_ALL, ""); + Hflag = Lflag = Pflag = aflag = sflag = dflag = cflag = hflag = 0; save = argv; -- cgit v1.1