Date: Sun, 29 Sep 1996 19:05:58 +0300 (MSK) From: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (Andrey A. Chernov) <ache@nagual.ru> To: joerg_wunsch@uriah.heep.sax.de Cc: freebsd-hackers@freebsd.org, imp@village.org Subject: Re: setlocale question Message-ID: <199609291605.TAA00468@nagual.ru> In-Reply-To: <199609291255.OAA06956@uriah.heep.sax.de> from "J Wunsch" at "Sep 29, 96 02:55:11 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> As [?KOI8-R?] wrote: > > > No, cat not require setlocale() (old variant, at least). > > It uses isascii() for -v which is locale-independend. > > It should use isprint(). Read the description of -v in the man page: > > -v Displays non-printing characters so they are visible. Control > ^^^^^^^^^^^^^^^^^^^^^^^ > > Since this will move it away from being ASCII-centric, it should > perhaps also use \xxx notation for non-printable characters instead of > this M-x crap. Alas, this would move us away from the other BSDs > again. Hmm. We already use locale for *vis() functions, propably it is time to implement it in cat too. I'll take care of it, if nobody disagree. IMHO, it will be better to preserve M-x notation to be compatible with *vis/*unvis functions and other BSDs. -- Andrey A. Chernov <ache@nagual.ru> http://www.nagual.ru/~ache/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609291605.TAA00468>