From a409ec19170918431fd9834799b251c9835b1174 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Mon, 23 Oct 1995 20:36:26 +0000 Subject: Add setlocale LC_ALL --- bin/ls/ls.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') 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 #include #include +#include #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 || -- cgit v1.2.3