Bug 600501

Summary: repodiff seems to not handle nonascii characters in a package summary
Product: [Fedora] Fedora Reporter: Bruno Wolff III <bruno>
Component: yum-utilsAssignee: Seth Vidal <skvidal>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: james.antill, maxamillion, pmatilai, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: yum-utils-1.1.27-2.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-04 20:51:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bruno Wolff III 2010-06-04 20:40:49 UTC
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>
    main(sys.argv[1:])
  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):
yum-utils-1.1.26-7.fc13.noarch

How reproducible:
Seem 100%

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/"


Additional info:

Name       : iwl5150-firmware
Arch       : noarch
Version    : 8.24.2.2
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.

Comment 1 seth vidal 2010-06-04 20:51:02 UTC
just needed a 'to_unicode()' around the summary output.

fixed in upstream.


thanks

Comment 2 Fedora Update System 2010-06-06 13:44:04 UTC
yum-utils-1.1.27-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/yum-utils-1.1.27-1.fc13

Comment 3 Fedora Update System 2010-06-14 17:19:35 UTC
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.