diff options
author | ache <ache@FreeBSD.org> | 1995-10-26 10:56:38 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-10-26 10:56:38 +0000 |
commit | 31de4a4cc91ec74916b76f5abc79131cc59bf4df (patch) | |
tree | cd4745e566967630535d212587699acc1e3bb693 /bin | |
parent | f87e0570b695345b80ac8b86599c866ce6473317 (diff) | |
download | FreeBSD-src-31de4a4cc91ec74916b76f5abc79131cc59bf4df.zip FreeBSD-src-31de4a4cc91ec74916b76f5abc79131cc59bf4df.tar.gz |
Change locale to LC_ALL, there no bitmask
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ls/ls.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ls/ls.c b/bin/ls/ls.c index ed1975e..6be4a32 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 || |