mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-06 09:17:25 +00:00
Change locale to LC_ALL, there no bitmask
This commit is contained in:
parent
345705134a
commit
f5bd01c69e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11808
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user