From schweikh@ito.uni-stuttgart.de  Mon Feb 19 01:28:41 1996
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 <FreeBSD-gnats-submit@freebsd.org>; 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: ls does not show unprintable chars (change request)

>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:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 19 01:30:02 PST 1996
>Closed-Date:    Sat Jan 11 13:51:14 PST 1997
>Last-Modified:  Sat Jan 11 13:51:41 PST 1997
>Originator:     Jens Schweikhardt
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
Uni Stuttgart
>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:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: wosch 
State-Changed-When: Wed Sep 18 11:29:19 PDT 1996 
State-Changed-Why:  
pipe output into a program like cat(1) and you can read umlauts, 
e.g.: $ ls -l | cat  

State-Changed-From-To: analyzed->closed 
State-Changed-By: mpp 
State-Changed-When: Sat Jan 11 13:51:14 PST 1997 
State-Changed-Why:  
Duplicate of PR# 1315. 
>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


