Bug 1699789

Summary: /usr/share/rpmlint/Pkg.py:168: UnicodeWarning: decode() called on unicode string
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: rpmlintAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: j, tcallawa, tmz, twoerner
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-29 11:44:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Pisar 2019-04-15 08:42:56 UTC
RPM Python binding started to warn on calling decode() on non-byte strings to in order to make the Python 3 binding Unicode-correct. It seems that rpmlint-1.10-22.fc31.noarch uses the bogus decode() method:

$ rpmlint -f perl-Socket.rpmlintrc perl-Socket-2.029-2.fc31.src.rpm 
/usr/share/rpmlint/Pkg.py:168: UnicodeWarning: decode() called on unicode string, see https://bugzilla.redhat.com/show_bug.cgi?id=1693751
  s.decode('UTF-8')
1 packages and 0 specfiles checked; 0 errors, 0 warnings.

It happens when calling rpmlint on any RPM package. I have python3-rpm-4.14.2.1-7.fc31.x86_64.

Comment 1 Petr Pisar 2019-04-29 11:44:05 UTC

*** This bug has been marked as a duplicate of bug 1693760 ***