Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jun 2001 23:20:03 -0700 (PDT)
From:      Jordan DeLong <fracture@allusion.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/28007: added "force printing of non-print chars" flag to /bin/ls
Message-ID:  <200106110620.f5B6K3T83440@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/28007; it has been noted by GNATS.

From: Jordan DeLong <fracture@allusion.net>
To: Peter Pentchev <roam@orbitel.bg>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106110620.f5B6K3T83440>