From e82c7ddd4737d3e402cb6c73d91b50afe8c5b7f7 Mon Sep 17 00:00:00 2001 From: James Youngman Date: Sat, 26 May 2007 07:08:18 +0200 Subject: wc: ignore multibyte-character decoding errors * src/wc.c (wc): Don't issue an error message when mbrtowc indicates that we have seen an invalid byte sequence. This makes "wc /bin/sh" bearable (though the word and line counts are likely not to be useful). * NEWS: Mention the change. --- NEWS | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index ea08e0a92..715b0d698 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,11 @@ GNU coreutils NEWS -*- outline -*- option of the same name, this makes uniq consume and produce NUL-terminated lines rather than newline-terminated lines. + wc no longer warns about character decoding errors in multibyte locales. + This means for example that "wc /bin/sh" now produces normal output + (though the word count will have no real meaning) rather than many + error messages. + ** Bug fixes cut now diagnoses a range starting with zero (e.g., -f 0-2) as invalid; -- cgit v1.2.3-70-g09d2