From f5bd01c69ef369fe7912c3281dd693eb434614e3 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Thu, 26 Oct 1995 10:56:38 +0000 Subject: [PATCH] Change locale to LC_ALL, there no bitmask --- bin/ls/ls.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/ls/ls.c b/bin/ls/ls.c index ed1975e80442..6be4a32267c2 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.7 1995/10/23 20:36:26 ache Exp $ + * $Id: ls.c,v 1.8 1995/10/23 21:09:01 ache Exp $ */ #ifndef lint @@ -105,7 +105,8 @@ main(argc, argv) int ch, fts_options, notused; char *p; - (void) setlocale(LC_CTYPE|LC_TIME, ""); + (void) setlocale(LC_ALL, ""); + /* Terminal defaults to -Cq, non-terminal defaults to -1. */ if (isatty(STDOUT_FILENO)) { if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &win) == -1 ||