mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
Change LC_ALL to LC_CTYPE|LC_TIME - small optimization
This commit is contained in:
parent
0c56c7b29c
commit
1d06ee4a64
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11745
@ -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.6 1995/03/23 19:05:00 phk Exp $
|
||||
* $Id: ls.c,v 1.7 1995/10/23 20:36:26 ache Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -105,7 +105,7 @@ main(argc, argv)
|
||||
int ch, fts_options, notused;
|
||||
char *p;
|
||||
|
||||
(void) setlocale(LC_ALL, "");
|
||||
(void) setlocale(LC_CTYPE|LC_TIME, "");
|
||||
/* Terminal defaults to -Cq, non-terminal defaults to -1. */
|
||||
if (isatty(STDOUT_FILENO)) {
|
||||
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &win) == -1 ||
|
||||
|
Loading…
Reference in New Issue
Block a user