Red Hat Bugzilla – Bug 600501
repodiff seems to not handle nonascii characters in a package summary
Last modified: 2014-01-21 18:15:00 EST
Description of problem:
I was running repodiff to compare f12 against f13 and got the following traceback:
New package iwl5150-firmware
Traceback (most recent call last):
File "/usr/bin/repodiff", line 272, in <module>
File "/usr/bin/repodiff", line 199, in main
print ' %s' % pkg.summary
File "/usr/lib/python2.6/codecs.py", line 351, in write
data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 26: ordinal not in range(128)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
repodiff "--old=http://mirrors.kernel.org/fedora/releases/12/Everything/source/SRPMS/" "--new=http://mirrors.kernel.org/fedora/releases/13/Everything/source/SRPMS/"
Name : iwl5150-firmware
Arch : noarch
Version : 18.104.22.168
Release : 1.fc13
Size : 121 k
Repo : fedora
Summary : Firmware for Intel® Wireless 5150 A/G/N network adaptors
URL : http://intellinuxwireless.org/
License : Redistributable, no modification permitted
Description: This package contains the firmware required by the iwlagn driver
: for Linux to support the iwl5150 hardware. Usage of the firmware
: is subject to the terms and conditions contained inside the
: provided LICENSE file. Please read it carefully.
just needed a 'to_unicode()' around the summary output.
fixed in upstream.
yum-utils-1.1.27-1.fc13 has been submitted as an update for Fedora 13.
yum-utils-1.1.27-2.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.