Bug 399871

Summary: rpmlint does not know how to compute line lenghts
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: rpmlintAssignee: Ville Skyttä <ville.skytta>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: panemade, tmz
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.82-2.fc8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-12-21 16:08:25 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 235705    

Description Nicolas Mailhot 2007-11-26 13:53:44 EST
rpmlint pretends it's counting characters, when in fact it's counting bytes, and
its count is wrong when applied to lines containing non-trivial UTF-8, so it
reports bogus line-too-long errors, that reviewers religiously ask to fix in
reviews, which is a major waste of time for everyone involved.

Please teach rpmlint to count characters properly or remove this stupid check

rpmlint-0.81-1.fc8.noarch
Comment 1 Ville Skyttä 2007-11-27 02:40:47 EST
Reproducer?
Comment 2 Nicolas Mailhot 2007-11-27 05:50:47 EST
https://bugzilla.redhat.com/show_bug.cgi?id=398781 for example.

I wasted a lot of time trying to understand why rpmlint disagreed with fold and
gedit before noticing in vim the column count was less than 79, but the byte
count was more.

(multiply by ~ 8 packages with that hi the same rplint bug)
Comment 3 Ville Skyttä 2007-11-27 15:29:17 EST
Fixed upstream, will be in the next release.
http://rpmlint.zarb.org/cgi-bin/trac.cgi/changeset/1385
Comment 4 Nicolas Mailhot 2007-11-27 16:43:01 EST
Thanks!
Comment 5 Fedora Update System 2007-12-07 16:33:26 EST
rpmlint-0.82-2.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update rpmlint'
Comment 6 Nicolas Mailhot 2007-12-08 05:13:46 EST
Works fine, thanks for the fix!
Comment 7 Fedora Update System 2007-12-21 16:08:20 EST
rpmlint-0.82-2.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.