[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
wc: billion "incomplete multibyte" warnings
From: |
Dan Jacobson |
Subject: |
wc: billion "incomplete multibyte" warnings |
Date: |
Mon, 27 Nov 2006 23:07:10 +0800 |
Did anyone ever mention that a billion
$ bla_bla|gzip|wc 2>&1|head -n 1
wc: standard input:1: Invalid or incomplete multibyte or wide character
$ bla_bla|gzip|wc 2>&1|wc
308 3073 22634
(OK, not a billion, but just the same as far as one's terminal buffer is
concerned) is more than enough to get the message across.
One "Holmes, use -c or LC_ALL=C" would be enough. Or maybe, just
maybe, act like we did, and require a --charset-characters if we are
to count locale (me: utf8) characters, or even (yuck) have that as a
fourth output field.
Anyway, I bet the standards document that you are trying to match
doesn't say you need to fill one's xterm buffer like that.
- wc: billion "incomplete multibyte" warnings,
Dan Jacobson <=