Description of problem: cat data thru col -b, col -b truncates the stream Version-Release number of selected component (if applicable): util-linux-2.12p-9.12 How reproducible: Very Steps to Reproduce: 1. cat /usr/share/doc/mutt-1.4.2.1/manual.txt | col -b | wc Actual results: 375 Expected results: 6297 Additional info: wc -l /usr/share/doc/mutt-1.4.2.1/manual.txt yields: 6297 /usr/share/doc/mutt-1.4.2.1/manual.txt Other files yield similar results: [ (0) wwalker@behemoth:~ ]$ cat mysql/5.0/manual.html | wc 113827 695996 7764064 [ (0) wwalker@behemoth:~ ]$ cat mysql/5.0/manual.html | col -b | wc 15 892 15048
There is a problem in the files, because wide chars conversion by getwchar() fails. Well, the col command should be more talkative about this problem. I'll change it and for errno==EILSEQ it will returns 1 (as for the others errors).
Fixed in FC4 and FC5. Now the col command reports information about failed wide character conversion: $ cat /usr/share/doc/mutt-1.4.2.1/manual.txt | ./col > /dev/null col: Invalid or incomplete multibyte or wide character