From owner-freebsd-bugs Mon Feb 19 01:30:09 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id BAA14143 for bugs-outgoing; Mon, 19 Feb 1996 01:30:09 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id BAA14136 Mon, 19 Feb 1996 01:30:05 -0800 (PST) Resent-Date: Mon, 19 Feb 1996 01:30:05 -0800 (PST) Resent-Message-Id: <199602190930.BAA14136@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:"from ito.uni-stuttgart.de (hoesun.ito.uni-stuttgart.de [129.69.65.20]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id BAA14065 for" ; Mon, 19 Feb 1996 01:28:31.-0800 (PST) Received: from itosun.ito.uni-stuttgart.de by ito.uni-stuttgart.de (5.x/SMI-SVR4/BelWue-2.0) id AA00646; Mon, 19 Feb 1996 10:27:10 +0100 Received: by itosun.ito.uni-stuttgart.de (5.x/SVR4/BelWue-1.0.3) id AA00773; Mon, 19 Feb 1996 10:27:05 +0100 Message-Id: <9602190927.AA00773@itosun.ito.uni-stuttgart.de> Date: Mon, 19 Feb 1996 10:27:04 +0100 (MET) From: schweikh@ito.uni-stuttgart.de (Jens Schweikhardt) To: FreeBSD-gnats-submit@freebsd.org Subject: bin/1035: ls does not show unprintable chars (change request) Sender: owner-bugs@freebsd.org Precedence: bulk >Number: 1035 >Category: bin >Synopsis: ls to terminal always uses ? for non-printable chars >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Feb 19 01:30:02 PST 1996 >Last-Modified: >Originator: Jens Schweikhardt >Organization: Uni Stuttgart >Release: FreeBSD 2.1-STABLE i386 >Environment: >Description: According to the ls(1) man page, non-printable characters in filenames are displayed as ? by default if output is to a terminal. There is the -q option to force this even when output is to a file. However, force printing non-printable characters is impossible when output is to a terminal. Or can this behaviour be changed using locale settings? The man page ls(1) does not say anything about it. And I remember having set locales and getting core dumps from xterm... >How-To-Repeat: Create a file with an a-umlaut in the name. Say ls. Suggested fix: add new option that prints filename as is, no matter what it is and where output goes. (although I'd rather see the default behaviour changed, and make the -q option not depending on isatty(stdout)). Bye, Jens >Fix: >Audit-Trail: >Unformatted: To: FreeBSD-gnats-submit@freebsd.org Subject: ls to terminal always uses ? for non-printable chars From: schweikh@ito.uni-stuttgart.de Reply-To: schweikh@ito.uni-stuttgart.de X-send-pr-version: 3.2