*** ls.c.original Sun Dec 10 23:40:24 1995 --- ls.c Mon Dec 11 01:15:51 1995 *************** *** 42,47 **** --- 42,49 ---- #include #endif #include + #include + #include #include #include #include *************** *** 529,534 **** --- 531,537 ---- register int i; register struct pending *thispend; + setlocale(LC_ALL, ""); exit_status = 0; dir_defaulted = 1; print_dir_name = 1; *************** *** 1675,1688 **** default: /* FIXME: why not just use the ISPRINT macro here? */ ! if (!(c > 040 && c < 0177)) found_quotable = 1; break; } } else { ! if (!(c >= 040 && c < 0177) && qmark_funny_chars) found_quotable = 1; } if (found_quotable) --- 1678,1693 ---- default: /* FIXME: why not just use the ISPRINT macro here? */ ! /* if (!(c > 040 && c < 0177)) *****/ ! if (!isgraph(c)) found_quotable = 1; break; } } else { ! /* if (!(c >= 040 && c < 0177) && qmark_funny_chars) *****/ ! if (!isprint(c) && qmark_funny_chars) found_quotable = 1; } if (found_quotable) *************** *** 1746,1752 **** break; default: ! if (c > 040 && c < 0177) SAVECHAR (c); else { --- 1751,1758 ---- break; default: ! /* if (c > 040 && c < 0177) *****/ ! if (isgraph(c)) SAVECHAR (c); else { *************** *** 1758,1764 **** } else { ! if (c >= 040 && c < 0177) SAVECHAR (c); else if (!qmark_funny_chars) SAVECHAR (c); --- 1764,1771 ---- } else { ! /* if (c >= 040 && c < 0177) *****/ ! if (isprint(c)) SAVECHAR (c); else if (!qmark_funny_chars) SAVECHAR (c); *************** *** 1880,1886 **** break; default: ! if (c >= 040 && c < 0177) len += 1; else len += 4; --- 1887,1894 ---- break; default: ! /* if (c >= 040 && c < 0177) *****/ ! if (isprint(c)) len += 1; else len += 4;