diff options
author | tjr <tjr@FreeBSD.org> | 2004-07-15 08:54:41 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-07-15 08:54:41 +0000 |
commit | c63c3a56b81ac6abc07f7c5a5060533f1c43bc1b (patch) | |
tree | dd5e12586070d3d25c0e26bf2c83013416ba31cb /usr.bin/du | |
parent | 21f820d4c3f86bcdc7f8e4e2ad1f117408869e27 (diff) | |
download | FreeBSD-src-c63c3a56b81ac6abc07f7c5a5060533f1c43bc1b.zip FreeBSD-src-c63c3a56b81ac6abc07f7c5a5060533f1c43bc1b.tar.gz |
Respect locale settings from the environment.
Diffstat (limited to 'usr.bin/du')
-rw-r--r-- | usr.bin/du/du.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <fnmatch.h> #include <fts.h> #include <libutil.h> +#include <locale.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -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; |