On Fri, Jul 13, 2012 at 3:58 PM, David Korn <d...@research.att.com> wrote:
> cc:  ast-developers@research.att.com
> Subject: Re: [ast-developers] RFE: New "wc" option "-X" which counts number 
> of  bytes which do not constitute valid multibyte characters...
> --------
>
> Would -X automatically enable -c?

Erm... -c is for plain bytes while -X should just count the number of
bytes not covered by -m/-C.

AFAIK all "wc" counting options count independently (e.g. -c/-m/-w/-l
can all be used in one command line (at least with GNU "wc"... AST
"wc" doesn't like having both -c and -m at the same command line)) ...
-X would be an exception because i basically "feeds on the remainder"
of -m/-C ...

> Would the output contain the other count or just the invalid character count?

It is the count of _bytes_ which do not make a valid multibyte
character (technically it can happen in the "C"/"POSIX" locales,
too... since both only cover bytes 0-127... making 128-255 invalid
character values).

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.ma...@nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)
_______________________________________________
ast-developers mailing list
ast-developers@research.att.com
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to