From owner-freebsd-bugs Sun Jun 10 23:20:11 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3902937B401 for ; Sun, 10 Jun 2001 23:20:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5B6K3T83440; Sun, 10 Jun 2001 23:20:03 -0700 (PDT) (envelope-from gnats) Date: Sun, 10 Jun 2001 23:20:03 -0700 (PDT) Message-Id: <200106110620.f5B6K3T83440@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Jordan DeLong Subject: Re: bin/28007: added "force printing of non-print chars" flag to /bin/ls Reply-To: Jordan DeLong Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/28007; it has been noted by GNATS. From: Jordan DeLong To: Peter Pentchev Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/28007: added "force printing of non-print chars" flag to /bin/ls Date: Sun, 10 Jun 2001 23:11:43 -0700 --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 11, 2001 at 09:06:41AM +0300, Peter Pentchev wrote: >=20 > Correct me if I'm wrong, but doesn't isprint() conform to locale settigs? > I don't know if this works with multibyte characters, but for 8-bit local= es > ls(1) certainly does the right thing, due to a setlocale(LC_ALL, "") call > at the very start. >=20 Actually I discovered this only a few hours ago (I was under the impression that isprint() was a simple macro that just checked if it was > 32 and < 127 or somesuch). So I was mistaken and everything is alright on that that fro= nt for /bin/ls. > > I've added a -w flag to /bin/ls that is used to force raw output > > of nonprintable characters when the output is a tty. >=20 > Other than the above argumet, yes, such a flag could be useful. >=20 agreed, I think it could still be useful. --=20 Jordan DeLong fracture@allusion.net --J/dobhs11T7y2rNN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjskYR4ACgkQDrrilS51AZ+h5wCgriEY4vNqu8KI2tNQYKByw8ne cBUAn2oWzQKgnZX0XGWYww3fn6Qn5q7o =hJL0 -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message