Bug 176441 - col -b truncates data
Summary: col -b truncates data
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux (Show other bugs)
(Show other bugs)
Version: 4
Hardware: All Linux
medium
medium
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Ben Levenson
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-12-22 20:40 UTC by Wayne Walker
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-01-03 17:59:15 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description Wayne Walker 2005-12-22 20:40:25 UTC
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

Comment 1 Karel Zak 2006-01-02 16:03:13 UTC
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).

Comment 2 Karel Zak 2006-01-03 17:59:15 UTC
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




Note You need to log in before you can comment on or make changes to this bug.