Bug 1699789 - /usr/share/rpmlint/Pkg.py:168: UnicodeWarning: decode() called on unicode string
Summary: /usr/share/rpmlint/Pkg.py:168: UnicodeWarning: decode() called on unicode string
Keywords:
Status: CLOSED DUPLICATE of bug 1693760
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmlint
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-15 08:42 UTC by Petr Pisar
Modified: 2019-04-29 11:44 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-29 11:44:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github rpm-software-management rpmlint issues 202 0 None closed decode('UTF-8') is not correct. 2021-01-11 06:30:30 UTC
Red Hat Bugzilla 1693751 0 unspecified CLOSED rpm.labelCompare expects strings, but RPM headers are bytes 2023-03-24 14:40:34 UTC

Internal Links: 1699790

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 ***


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