commit | a9464f41539f4800744b4185c6a4d4c5e38eeadf | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Wed Nov 28 03:12:02 2012 -0600 |
committer | Rob Landley <rob@landley.net> | Wed Nov 28 03:12:02 2012 -0600 |
tree | 89cec6fdf3ac51f7dc3ffb1011daf277a88a9141 | |
parent | a03f3e120c96ed58e6913dae3d21bdea59390c2b [diff] |
The previous wc -m didn't handle multibyte characters that crossed a buffer boundary, so take a guess at making that work. (I haven't got a test case for this. I also don't know how to handle invalid sequences so just don't count them.)