Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] "M-" notation



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.




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org