diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-10-23 20:36:26 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-10-23 20:36:26 +0000 |
commit | a409ec19170918431fd9834799b251c9835b1174 (patch) | |
tree | 69ea108f8116ea9aa471f1a840f55ca7b5dbe3c5 /bin | |
parent | 4aa17bf7c8473e8160e123260844023b33998338 (diff) | |
download | src-test2-a409ec19170918431fd9834799b251c9835b1174.tar.gz src-test2-a409ec19170918431fd9834799b251c9835b1174.zip |
Notes
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 17f7137c1d3a..c9ef07422854 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 || |