diff options
author | ache <ache@FreeBSD.org> | 1995-10-23 20:36:26 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-10-23 20:36:26 +0000 |
commit | 80200799c7d7c756355c5ad381860f5ab591a9e0 (patch) | |
tree | 69ea108f8116ea9aa471f1a840f55ca7b5dbe3c5 /bin | |
parent | 84f0fb5bdf0637485b41788c7a96e6b338431403 (diff) | |
download | FreeBSD-src-80200799c7d7c756355c5ad381860f5ab591a9e0.zip FreeBSD-src-80200799c7d7c756355c5ad381860f5ab591a9e0.tar.gz |
Add setlocale LC_ALL
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ls/ls.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/ls/ls.c b/bin/ls/ls.c index 17f7137..c9ef074 100644 --- a/bin/ls/ls.c +++ b/bin/ls/ls.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ls.c,v 1.5 1995/03/19 13:28:44 joerg Exp $ + * $Id: ls.c,v 1.6 1995/03/23 19:05:00 phk Exp $ */ #ifndef lint @@ -58,6 +58,7 @@ static char sccsid[] = "@(#)ls.c 8.5 (Berkeley) 4/2/94"; #include <stdlib.h> #include <string.h> #include <unistd.h> +#include <locale.h> #include "ls.h" #include "extern.h" @@ -104,6 +105,7 @@ main(argc, argv) int ch, fts_options, notused; char *p; + (void) setlocale(LC_ALL, ""); /* Terminal defaults to -Cq, non-terminal defaults to -1. */ if (isatty(STDOUT_FILENO)) { if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &win) == -1 || |