[Discuss] "M-" notation

Derek Martin invalid at pizzashack.org
Fri Jul 6 11:29:29 EDT 2012


On Thu, Jul 05, 2012 at 08:00:48PM -0400, Daniel Feenberg wrote:
> "cat -v" has acquired something new called "M-" notation. It is
> mentioned but not described in the man page for cat, but apparently
> tr doesn't support it. Any suggestions on how to delete all the "M-
> " characters from a file?

On my system at least, this feature seems pretty broken.  I have a
file full of uncommon (i.e. non-ascii-subset) Unicode characters, and
running that through cat -v produces a completely unreadable mess,
when all of the characters are perfectly printable.  My guess is it
uses isprint() on raw bytes when it should really be using iswprint()
on decoded unicode characters.

-- 
Derek D. Martin    http://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail due to spam prevention.  Sorry for the inconvenience.



More information about the Discuss mailing list