From 80200799c7d7c756355c5ad381860f5ab591a9e0 Mon Sep 17 00:00:00 2001 From: ache 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/ls') 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 #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.1